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?
Related
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.
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..
I've recently deleted some other projects from my eclipse workspace (permamently) and after that in my current project appeared some errors (R cannot be resolved to a variable).
I tired cleaning and building again project, but this time it doesn't help.
In resources, errors appears only in styles.xml files:
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
I'm new in android development and I don't understand what's exactly wrong. Probably something with theme, but I tried to change it to something different - without effects.
Download the v7-appcompat library, import it into Eclipse and reference it in those projects which are showing this error. This will solve your problem.