Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google play service resource not found

I have update SDK using SDK manger,after updating SDK "google-play-services_lib" not getting complied,Its showing following error.

**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'.

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'.

 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'.

 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'.**

Any Help appreciated.

Following is xml(under "values-v11") which is giving error,

<?xml version="1.0" encoding="utf-8"?>

<!-- Base preview application theme. -->
<style name="Theme.AppInvite.Preview.Base" parent="@android:style/Theme.Holo.Light.DialogWhenLarge.NoActionBar"/>

like image 977
Joe Avatar asked Jan 06 '16 11:01

Joe


Video Answer


1 Answers

This may fix your problem

  1. Right side click on your project select Properties -> Select Android
  2. Under Project Build Target, check *Android 6.0 or to the latest API.
  3. Build

One important thing : While importing library projects always copy to your workspace.

UPDATED:
Reason : Most of time google play service lib access resources from lastest API available. that's why you need to target to the latest.

like image 161
Bharatesh Avatar answered Sep 28 '22 09:09

Bharatesh