我使用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(在"values-v11"下)给出错误,
这可能会解决您的问题
右键单击您的项目,选择Properties - > Select Android
在Project Build Target下,选中*Android 6.0或最新的API.
建立
一件重要的事情:导入库项目时总是复制到您的工作区.
更新:
原因:大部分时间谷歌播放服务lib访问资源从最新的API可用.这就是你需要瞄准最新目标的原因.