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 - 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.
Xamarin : No resource found that matches the given names (AppCompat)
I switched from Xamarin Components to NuGet packages and it works now.
MvvmCross installed the latest versions of packages Nuget (23.3.0) for its dependencies (MvvmCross.Droid.Support.V4, MvvmCross.Droid.Support.V7.AppCompat, MvvmCross.Droid.Support.V7.Preference ...). and components used earlier.
I also had to copy the "C:\Users\andres\AppData\Local\Xamarin" folder from my virtual machine.
In Visual Studio, I had no notification about an update available for the components.
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 (at 'theme' ...)
You style reference lacks Theme.
in path. Proper full name is
@android:style/Theme.Material.NoActionBar.Fullscreen
Also be aware that Android Studio offers code completion also in styles, so you can enter i.e. @android:style/Theme.Ma
or @android:style/fulls
and press ctrl + Space to see all available matching styles.
Error:(25, 28) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.NoActionBar')
Make this changes in your existing code
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true" >
<!-- all the activities goes here -->
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
and Add style
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/btn_background_green</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
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
Related Topics
Push Notifications in Android Platform
How to Disable Landscape Mode in Android
How to Read Mms Data in Android
How to Make Wrap_Content Work on a Recyclerview
Soft Keyboard Open and Close Listener in an Activity in Android
How to Prevent Screen Capture in Android
Include .So Library in APK in Android Studio
How to Dismiss the Dialog with Click on Outside of the Dialog
Activity, Appcompatactivity, Fragmentactivity, and Actionbaractivity: When to Use Which
Why Does Layoutinflater Ignore the Layout_Width and Layout_Height Layout Parameters I'Ve Specified
How to Change Colors of a Drawable in Android
Android Push Notifications: Icon Not Displaying in Notification, White Square Shown Instead
How to Make Surfaceview Transparent