Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in changing the android API level?

Tags:

android

when i am creating new project i added API level 14 , i have completed my application and i want to change the API level to 10 ,

i am getting and error in resources-->values-v11--> style.xml i.e error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.

in resources-->values-v14--> style.xml

i.e error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.

i dint understood this can any one explain

like image 864
Anwesh Avatar asked Aug 03 '12 06:08

Anwesh


People also ask

How do I change the API level of an app?

Step 1: Open your project in Android mode then go to Gradle Scripts > build. gradle(Module: app) as shown in the following image. Step 2: Refer to the below image and here you have to change the minSdkVersion and targetSdkVersion as per the requirement.

What is the current API level of Android?

Android 11 (API level 30)

What is the minimum API level that the Android application supports?

Starting in November 2022, app updates must target API level 31 or above and adjust for behavioral changes in Android 12; except for Wear OS apps, which must target API level 30 or higher.


2 Answers

Following ankita gahoi's advice, I searched a little further and solved the problem.

Try this:

Delete the folders 'values-11' and 'values-14' (if any of them exist). Then, if this error shows up in the console window:

 "No resource identifier found for attribute 'showAsAction' in package 'android'"

Read the answers to these questions:

"No resource identifier found for attribute 'showAsAction' in package 'android'" (Jason Hanley's)

How to change target build on Android project? (Alan Will's)

My build target was already set to the right Android version, so I set it to 'Google APIs' and then back to the former target.

like image 160
e2matheus Avatar answered Oct 08 '22 12:10

e2matheus


These themes are available in API level 11 or higher so it will not work.because you are using API level 10.

refer this link- http://developer.android.com/guide/topics/ui/themes.html

like image 5
ankita gahoi Avatar answered Oct 08 '22 12:10

ankita gahoi