I have updated my all sdk and api version , .... to the last version. but now i have an error in my appcompat_v7. I also reimported the appcompat_v7 project from android sdk support library folder. But it didn't work. my min sdk version is api7 in the project and target sdk is api22 (android 5.1.1). I get this error:error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
How can i solve it?
Thank you for your advice.
(sorry for my bad English!)
Related
i'm new in android development . i installed Eclipse and JDK and Installed( API 20) and (API 8) and all the extras but when i opened eclipse for android project i got error in Appcompat_v7(res->values_v23->styles_base.xml->(
) .
Error is :enter image description here
Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. styles_base.xml /appcompat_v7/res/values-v23
Change the Compile Sdk to 23. That Solve my Problem.
Update
As the OP has now Android Studio,
here are a few links to tackle the same,,
Boost up Gradle build time - 1
Boost up Gradle build time - 2
basically you need to add org.gradle.daemon=true to build.gradle file.
you can search for similar, and will find many threads on SO for the same,
Note: Its not "Guaranteed" to work but why not give a try
I would suggest you to use Android Studio instead of Eclipse.
Now the error, you will have to update your SDK platform to API 23 which is the Latest API(as of now), as it will require that particular version for compiling. Your current is API 20 which will not include the styles which is required by appcompat_v7.
i programed with eclipse but i try make project today that eclipse make errors.
solution that told all is for android studio.
enter image description here
You should change your target sdk version to 23.
Reason : you may be using support design library (v23.z.z) which is dependent on the sdk version 23
I have imported android support-v7 appcompat library From File >Import >Android >Existing Android Code Into Workspace >sdk >extra >android >support >v7 >appcompat. when I click finish I get " android supprt v 7 appcompat" in project explorer, it shows me an error.
in android-support-v7-appcompat\res\values\styles_base.xml -> I get the following error:
"error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
I have search this problem couldn't solve my problem.
I wanted to upload screen shoot unfortunately, I am not able to since it needs at least 10 reputation :(
any ideas please
It sounds as though you are not compiling with the Android 5.0 (API level 21) SDK.
You need to install API 21 via the SDK manager, then update your project settings to compile with API 21.
I am using ActionBarSherlock to implement action bar on my Android 2.1 API 7 project. (With Eclipse IDE)
In order to use sherlock, I imported sherlock library as a existing project on Eclipse. Then, I added it as library on my own project.
However, in my own project, the Eclipse's console shows me the following error:
JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:48: error: Error: No resource found that matches the given name: attr 'android:actionBarSize'.
JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:49: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.
...
Why??
(I have set target SDK to Android 3.2 for Sherlock.)
Set target SDK to Android 3.2(Version 14) or above. Your desired version can be anything from Android 1.5 (version 7?) upward if I remember correctly.
Afaik you have to use the api level 14 (or at least honeycomb) library when using ActionBarSherlock. You can still set the minimum version to 7, but the target version has to be ICS (or maybe honeycomb).
But then you have to make sure that you're not using any methods introduced in later versions.
Open the ABS Properties and the change the Project Build Target in the Android tab to 13.
Set in Android-manifest file to target sdk to 14
I ran into the following error after upgrading my android sdk to 3.2:
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
[aapt.exe] c:\jenkins\workspace\AndroidAppBranch2.0_conversion\res\values\themes.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '#android:style/AlertDialog'.
I didn't change anything in the code and the only thing that I did was upgraded the Android SDK to 3.2 this morning when the SDK Manager prompted me. I upgraded the SDK on another machine (stupid me...) and the same error showed up.
Has anyone run into this?
AAPT is broken in 3.2
Only (discovered) workaround is replacing platform-tools with a previous version...
http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b/9b2b2aa389dce367?show_docid=9b2b2aa389dce367
Latest info I could find, seems replacing with the previous version is not going to be a proper fix, nor will there be a change to current version:
http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b/351daa9f65a7a09a?lnk=raot