No Resource Found - Theme.Appcompat.Light.Darkactionbar

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.

Sample Image

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.

  1. Right click on your Android project.
  2. Select properties.
  3. Click 'add...' at the bottom to add a library.
  4. Select the support library
  5. Clean and rebuild your project.


Related Topics



Leave a reply



Submit