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.
Related
I am getting error as
Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /res/values line 7 Android AAPT Problem
I have created the android app using settings in Android JUNO:
Min Req SDK: API 8,
Target SDK: API 21,
Compile With: API 25,
Theme: Holo Light with Dark Action Bar (Also tried with None),
Create Activity: checked,
Create Activity: Blank Activity (Also tried Empty Activity),
I have also tried upgrading Android Support Library from Android sdk, but did not help.
When I tried to import, AppCompat is not present anywhere.
Also when I tried to Add Library from Project Properties, there is no AppCompat available there.
Please help me with detailed explanation or let me know if any more details are needed.
I have solved this one by downloading Android Studio and while installing I have selected "Do not import anything from previous installation". There may be problem with my previous installation with Eclipse Juno.
I Hope this will help someone looking for an answer.
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?
an app which I have written 2 years ago does not compile anymore for me. I used eclipse to write the code, but I try to build on the cmdline now.
The failure happens in aapt:
appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '#android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.
The full build log is at
The full build log (output of ant debug).
Can anybody tell what is going wrong?
I uploaded the source code
According to:
Error retrieving parent for item: No resource found that matches the given name '#android:style/Theme.Material
On Eclipse go to:
Project -> Properties -> Android
(Project Build Target) and select equal to your appcompat library project.
Or make sure you've added AppCompat in your project.
By the way, i think this is a duplicate question.
Hey Guys I need Some help here , I was testing and creating Apps with android 4.4 W and 2.2 froyo and recently I chose to install the Other android sdks such as 4.4.2 , 4.2.2 respectively and from there after I am getting the Above Error mentioned , I tried adding support libraries for the project and tried a couple of things mentioned on stackoverflow .
the errors when we first build the project are :
C:\Users\user\Documents\android-workspace\appcompat_v7\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
C:\Userprofile\Documents\android-workspace\appcompat_v7\res\values-v21\themes_base.xml:157: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
C:\Userprofile\Documents\android-workspace\appcompat_v7\res\values-v21\themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
the following are the errors : and not able to resolve android R Issue when i create a new project and working on it
Description Resource Path Location Type
error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. styles_base.xml /appcompat_v7/res/values-v21 line 75 Android AAPT Problem
Description Resource Path Location Type
The container 'Android Dependencies' references non existing library 'C:\Users\user\Documents\android-workspace\appcompat_v7\bin\appcompat_v7.jar'
Follow these steps.
Right Click on the project
Go to properties.
Click Android from left.
In right you will see a list of android versions. Check the one with api level more than 18.
Click Ok, Now clean your project and rebuilt it again.
Hop it will remove your error.
Deleting all the <style> tag in the themes.xml file from the values-v21 folder and values-v14, values-v11 cleared this issue for me...
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..