gpt4 book ai didi

android - 未找到 Google Play 服务资源

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:22:01 24 4
gpt4 key购买 nike

我使用 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”下),

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

最佳答案

这可能会解决您的问题

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

一件重要的事情:导入库项目时始终复制到您的工作区。

更新:
原因:大部分时间google play service lib从可用的最新 API 访问资源。这就是为什么您需要定位到最新的。

关于android - 未找到 Google Play 服务资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34631562/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com