No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'
Change parent
attribute to parent="android:style/Theme.Holo.Light.DarkActionBar"
No resource found that matches the given name '@style/ Theme.Holo.Light.DarkActionBar'
Do this:
"android:style/Theme.Holo.Light.DarkActionBar"
You missed the android
keyword before style. This denotes that it is an inbuilt style for Android.
No resource found that matches the given name 'android:Theme.Material.Light.DarkActionBar'
You can try to set the values in the build.gradle
like this (updated for API 25):
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
minSdkVersion 21 //oldest version you would like to support
targetSdkVersion 25
versionCode 1
versionName "1.0"
...
}
}
error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'
You can refer to the Holo theme as parent="@android:style/Theme.Holo"
, but to use the Holo Theme you have to set the build target in your manifest to API level 11 or later, also you have to put the style.xml
file containing the Holo theme to the folder values-v11
No resource found that matches the given name '@style/Theme.AppCompat.Light'
What are the steps for that? where is AppCompat located?
Download the support library here:
http://developer.android.com/tools/support-library/setup.html
If you are using Eclipse:
Go to the tabs at the top and select ( Windows -> Android SDK Manager ). Under the 'extras' section, check 'Android Support Library' and check it for installation.
After that, the AppCompat library can be found at:
android-sdk/extras/android/support/v7/appcompat
You need to reference this AppCompat library in your Android project.
Import the library into Eclipse.
- Right click on your Android project.
- Select properties.
- Click 'add...' at the bottom to add a library.
- Select the support library
- Clean and rebuild your project.
No resource found that matches the given name '@style/ Theme.Holo.Light.DarkActionBar
Your current minSdkVersion is 8. Either change it to 14+ or use AppCompat support library. This library will let you draw action in lower APIs also.
Inside style tag you will have to use Theme.AppCompat.light
as parent.
No resource found that matches the given name Styles.xml
Did you make changes in your manifest file
<application
android:theme="@style/CustomActionBarTheme" >
</application>
Now you must be declaring it as
android:theme="@android:style/CustomActionBarTheme" >
No resource found - Theme.AppCompat.Light.DarkActionBar
AppCompat
is a library project. You need to reference the library project in your android project.
Check the topic Adding libraries with resources.
Update
Adding material theme should be the way. Check https://material.io/develop/android/docs/getting-started for more details.
Related Topics
How to Take Pictures from The Camera Without Preview When My App Starts
How to Debug on a Real Device (Using Eclipse/Adt)
Move Snackbar Above The Bottom Bar
How to Get Background Color from Current Theme Programmatically
Google Maps Android API V2 - Sample Code Crashes
Change Button Text and Action - Android Development
How to Access an Existing Sqlite Database in Android
How to Prevent The Activity from Loading Twice on Pressing The Button
Signing My Android Application as System App
How to Find The Amount of Free Storage (Disk Space) Left on Android
Android Build Gradle Is Too Slow (Dependency Resolution)
Crop Square Image to Circle - Programmatically
Combining Two Bitmap Image (Side by Side)
Use 32-Bit Jni Libraries on 64-Bit Android
Designing Android Apps for Tablets
Combining Two Png Files in Android