未找到Google Play服务资源 [英] Google play service resource not found

查看:249
本文介绍了未找到Google Play服务资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了使用SDK经理的SDK,在更新SDKgoogle-play-services_lib未得到遵守之后,它显示出以下错误。

  ** extras\google\google_play_services\libproject\google-play-services_lib\res\values-v11\appinvite_styles.xml:5:error:Error retrieve the parent for item:No found found匹配给定名称'@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 retrieve the parent for item:No找到与给定名称'@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 retrieve the parent for item:No找到匹配给定名称'@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 retrieve the parent for item:No找到的资源符合给定名称'@android:style / Theme.Material.Light.DialogWhenLarge.NoActionBar'。**



$ p
$ b

以下是xml(在values-v11下),它给出了错误,

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

 <! - 基本预览应用程序主题。 - > 
< style name =Theme.AppInvite.Preview.Baseparent =@ android:style / Theme.Holo.Light.DialogWhenLarge.NoActionBar/>


解决方案

这可以解决您的问题


$ b


  1. 右键单击您的项目选择属性 - >选择 Android

  2. 构建目标下,检查* Android 6.0或最新的API。

  3. 构建

一个重要的事情:复制到您的工作区。 原因: / strong>大多数时间 谷歌播放服务库 访问资源来自最新的API可用。这就是为什么你需要瞄准最新的。


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"/>

解决方案

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.

这篇关于未找到Google Play服务资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆