this might be an experience for other developers of recent. I only experienced this today trying to build my app and i get this error.
Error:(3, 5) No resource found that matches the given name (at
'android:actionModeCloseDrawable' with value
'#drawable/abc_ic_ab_back_mtrl_am_alpha').
I googled and tried all suggested solutions but is nothing is working for me I even cloned back my initial project repository and can't seem to compile.
Any solution that works will help save time .
In support library 23.2.0 the name was changed from abc_ic_ab_back_mtrl_am_alpha to abc_ic_ab_back_material. Could that be the problem?
Related
I am following the getting started guide for xamarin android but have encountered a problem.
I have finished all of the steps but when I go to build the app it gives me this error:
no resource found that matches the given name (at 'icon' with value '#mipmap/Icon').
This is strange as I have all the Icon.png files in the different mipmap folders.
If anyone could help with this that would be great. Thanks!
nvm I figured out a workaround. The solution was to go into assemblyinfo.cs (which is under propterties) and add the following line:
[assembly: Application(Icon = "#mipmap/icon")]
I wanna build and run Kotlin code from this repository
https://github.com/steelkiwi/Getting-started-with-Kotlin
But, it always give this error when I built it
Error:(3, -1) android-apt-compiler: [main] Error retrieving parent for
item: No resource found that matches the given name
'Theme.AppCompat.Light.DarkActionBar'.
I had googling about this error, and some of the answers suggest to add AppCompat manually to project. I have been try those solution, and get the same result.
I used Intelllij IDEA and I just think, this problem was on my IDE configuration. I have enable Android Support, and no result.
Is there anyone have same problem like this on Intellij IDEA?
Can someone help me please ? I've been working on it for 6 hours. I've watched many videos and looked forums. I've tried to use Eclipse with Genymotion. I built the SDK but I couldn't solve app compat problem
Here is the problem
E:\AndroidProjects\sdsfds\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
I tried to import Compat file but it doesn't work.
Whilst trying to continue some work on my Android App, I came across numerous errors (which have been solved). However, I now receive around 100 errors all stating either
`error: Error: No resource found that matches the given name: attr 'ATTR NAME'`.
OR
`error: Error retrieving parent for item: No resource found that matches the given name 'RESOURCE NAME'`.
(ATTR NAME = attr 'android:colorPrimaryDark', attr 'android:colorAccent' etc.
RESOURCE NAME='android:Theme.Material.Light.Dialog','android:Theme.Material.Dialog'etc.)
I'm almost positive this is a Project Build Target error even though the targets for appcompat_v7 and my project is API_LEVEL 21. I have also removed any duplicated .jar files in the /lib folder as instructed to.
Any help is greatly appreciated as this problem has now consumed around 5-7 hours of my time.
Check if your support library has been updated alongside with your api level, then try cleaning your project.
Make sure you are using updated support library.
First of all i want to say that i know this topics have been brought up lots of times. But i can't seem to find the solution for this problem.
This is some of the errors from the log:
/home/name/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/res/values-v14/themes_base.xml:159: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/home/name/workspace/Projectname/res/values-v14/styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.
/home/name/workspace/Projectname/res/values-v14/styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
/home/name/workspace/Projectname/res/values-v14/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '#android:style/Widget.Holo.ActionBar'.
I'v made a custom theme, and im using Actionbar.
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="9" />
All of this used to work, then i had to reinstall my eclipse, so i imported the project to the freshly installed one. And that is when the errors occurred.
The R.File is also missing.
Please help me, im starting to lose my mind becuase of this problem.
EDIT 1:
To clear things out. I added the android-support-v7-appcompat with this method (Adding libraries with resources):
http://developer.android.com/tools/support-library/setup.html
The project build target on android-support-v7-appcompat is Android 4.0 and the project build target on my project is Android 2.3.3.
Is this right? Im not really sure what it should be like.
I can't say exactly, but if you are using appcompt library,
Project(Right Click)--> Properties--> Android--> Library section--> Add--> appcompt library.
can you please check this once.
Edit :
Compile with API Level 14 - when you compile your app with SDK level 9, the compiler doesn't know the elements shown in the error log
Or Project(Right Click)--> Android Tools --> Add Support Library / Fix Project Property..