Project ActionBar Error After Google Play Service Update - android

I have the following error after updating Google Play Services:
[2015-12-19 10:58:19 - google-play-services_lib] C:\Tools\Android\sdk_24\extras\google\google_play_services\libproject\google-play-services_lib\res\values-v11\appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '#android:style/Theme.Holo.Light.DialogWhenLarge.NoActionBar'.
[2015-12-19 10:58:19 - google-play-services_lib] C:\Tools\Android\sdk_24\extras\google\google_play_services\libproject\google-play-services_lib\res\values-v21\appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '#android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.
Styles.xml:
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
I had already imported appcompat_v7. Everything was working fine before the google play service import.

I had same problem, only that I have found in google code groups was to move to old lib version

Ok I downloaded an older version of Google Play Services as per this answer:
How to download older google play services?
Removed my updated version (from eclipse and disk)
Imported r27 release into Eclipse
No more updating anything again!

Related

Error with Gyrobot project for android in Github [duplicate]

below is my xml file.It gives me err saying thaty "error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'."
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>
Change parent attribute to parent="android:style/Theme.Holo.Light.DarkActionBar"
Right-click your project in the Package Explorer > select Properties > select Android > and set Project Build Target to API level 14 or higher.
Right Click your project->properties->Android, then Add android-support-v7-appcompat
You can import this library from your android-sdk folder->extras->android->support->v7->appcompat

Disappearing R.class - Android Application Development

I'm struggling with disappearing R.class due to some problem in styles.xml - it says
Error retrieving parent for item:
No resource found that matches the given name 'Theme.AppCompat.Light'.
Problem appeared while exporting project to another laptop....
styles.xml below.
Thanks in advance.
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
This means you do not have the support library in your build path on your new machine. See the adding support libraries with resources section of the docs for your answer.
First of all I suppose you tried Project -> Clean or to close and re-open eclipse itself. Then you must ensure of adding support libraries as said up.
Lack of R file can be caused by many reasons.
Possible Solutions
Sol 1. Since it is associated with Theme.AppCompat.Light( which is defined in support library) it may be caused by lack support library in your build path(Appcompat).
Sol 2. Check the version of appcompat and make sure you have the latest one.
Sol 3. Just to be sure. Undo latest changes done in any xml files( or replace the xml file from history).
Sol 4. If you have already added support library and the problem still exists then delete android-support-v4.jar from lib folder if present( this is because conflicting support jar files can cause R file errors).
Sol 5. Check Project Build Target.(Project>Properties>Android)
You can also make sure 'Theme.AppCompat.Light' is present in your support library by placing the cursor between the text(Theme.AppCompat.Light) and press control button which should underline the whole text.
I hope it helped..

No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'

below is my xml file.It gives me err saying thaty "error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'."
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>
Change parent attribute to parent="android:style/Theme.Holo.Light.DarkActionBar"
Right-click your project in the Package Explorer > select Properties > select Android > and set Project Build Target to API level 14 or higher.
Right Click your project->properties->Android, then Add android-support-v7-appcompat
You can import this library from your android-sdk folder->extras->android->support->v7->appcompat

In android when i try to run my project it says 'No resource found that matches the given name 'Theme.AppCompat.Light'? [duplicate]

This question already has answers here:
No resource found that matches the given name '#style/Theme.AppCompat.Light'
(4 answers)
Closed 8 years ago.
'No resource found that matches the given name 'Theme.AppCompat.Light'
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
here is the error ->>><style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
-->open android SDK manager,make sure that Android Support Library is installed..
-->After that the AppCompat Can be found at
android-sdk/extras/android/support/v7/appcompat
-->You need to reference this AppCompat in your android project.
-->Import the library to eclipse.
-->Right click on your android project. Goto Properties. goto andorid. Click Add Library and reference the same.
-->Clean and Rebuild your project

I keep getting an error in my android project

I keep getting an error the values-v11 folder on the style.xml The error says:
error: Error Retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>
I'm using Android SDK 2.3
With android sdk 2.3 you can not control or change behavior of action bar..
for that min sdk should be sdk 3.0 or above.
for further you can see this documentation.

Categories

Resources