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.
Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.AppCompat.Light.DarkActionBar'
Try to delete android:
, like this:
<style name="CustomActionBarTheme"
parent="@style/Theme.AppCompat.Light.DarkActionBar">
No resource found that matches the given name AppCompat.Light.DarkActionBar
The problem seems to be in the build.gradle project file (thanks IntelliJ Amiya)
I changed this:
classpath 'com.android.tools.build:gradle:2.3.1'
To
classpath 'com.android.tools.build:gradle:2.2.2'
And now I don't get any erros in AppCompat.Light.DarkActionBar
Xamarin - Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'
It had nothing to do with the code. It's just that Visual Studio at moment of writing doesn't support Custom Views.
Just use Xamarin Studio or this plugin https://visualstudiogallery.msdn.microsoft.com/9f5a516a-f4d0-4228-9d25-d0273abebf33 So you can edit your applications in Android Studio.
See Xamarin.Android, Visual Studio - Designer doesn't work with v7 AppCompat library for more detailed answers.
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.
Related Topics
Android:How to Set Onclick Event for Button in List Item of Listview
Latest Update on Enabling and Disabling Mobile Data Programmatically
Unable Instantiate Android.Gms.Maps.Mapfragment
How to Disable Action Bar Permanently
What Characters Allowed in File Names on Android
Actionbar Not Shown with Appcompat
Image, Saved to Sdcard, Doesn't Appear in Android's Gallery App
How to Create Jar for Android Library Project
How to Kill an Application with All Its Activities
Passing Arraylist of Objects Between Activities
Android - Detect Phone Unlock Event, Not Screen On
How to Configure a Static Ip Address, Netmask, Gateway Programmatically on Android 3.X or 4.X
How to Prevent Multiple Instances of an Activity When It Is Launched with Different Intents
Callback to a Fragment from a Dialogfragment
Error:Execution Failed for Task ':Android:Transformclassesandresourceswithproguardforrelease'