未找到Google Play服务资源

Joe*_*Joe 9 android google-maps google-play-services

我使用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'.**
Run Code Online (Sandbox Code Playgroud)

任何帮助赞赏.

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

<?xml version="1.0" encoding="utf-8"?>
Run Code Online (Sandbox Code Playgroud)

<!-- Base preview application theme. -->
<style name="Theme.AppInvite.Preview.Base" parent="@android:style/Theme.Holo.Light.DialogWhenLarge.NoActionBar"/>
Run Code Online (Sandbox Code Playgroud)

Bha*_*esh 19

这可能会解决您的问题

  1. 右键单击您的项目,选择Properties - > Select Android
  2. Project Build Target下,选中*Android 6.0或最新的API.
  3. 建立

一件重要的事情:导入库项目时总是复制到您的工作区.

更新:
原因:大部分时间谷歌播放服务lib访问资源从最新的API可用.这就是你需要瞄准最新目标的原因.