我有更新SDK使用SDK管理器,更新SDK“google-play-services_lib”没有得到遵守,它显示以下错误.
**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'.**
任何帮助赞赏.
以下是xml(在“值-v11”下面),它给出错误,
<?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"/>
解决方法
这可能会解决您的问题
>右键单击您的项目选择属性 – >选择Android
>在项目构建目标下,检查* Android 6.0或最新的API.
>建立
一个重要的事情:导入库项目总是复制到你的工作区.
更新:
原因:大部分时间谷歌播放服务lib访问资源从最新的API可用.这就是为什么你需要瞄准最新的.
Happy_Coding;
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。