未找到与给定名称相匹配的资源'@android:style / Theme.Material.Light.DialogWhenLarge.NoActionBar' [英] No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'

查看:1064
本文介绍了未找到与给定名称相匹配的资源'@android:style / Theme.Material.Light.DialogWhenLarge.NoActionBar'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  C:\程序文件(x86) \Android\roid- sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values-v21\appinvite_styles.xml:5:error:Error retrieve the parent for item :找不到与给定名称'@android:style / Theme.Material.Light.DialogWhenLarge.NoActionBar'匹配的资源。 

我的目标是 android-19 还尝试了使用相同结果的 android-21 。我有Android支持库



如果我使用旧版Google Play服务(修订版21) ,错误不在那里。在早期版本中也没有文件夹 values-v21 。如何解决这个错误?

编辑:我已经尝试使用API​​ 21,但此错误仍然存​​在。
in manifest.xml

 < uses- sdk android:minSdkVersion =21
android:targetSdkVersion =21/>

位于 project.properties

  target = android-21 




  • 右键单击 google-play-services_lib 项目

  • 转到java编译器并将其设置为1.5

  • 转到android并设置项目构建target to android 6.0

  • 请确保您在SDK中安装了最新的android sdk工具和google play服务更新


关闭项目并打开它,这也有帮助。


I get this error when trying to use latest Google Play Services SDK:

C:\Program Files (x86)\Android\android-sdk\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'.

I am targetting android-19 but have also tried android-21 with same result. I have the Android Support Library

If I use older version of Google Play Services (rev. 21), the error is not there. Also there is no folder values-v21 in the earlier version. How to fix this error?

EDIT: I have tried using API 21 but this error persists. in manifest.xml:

<uses-sdk android:minSdkVersion="21"        
      android:targetSdkVersion="21" />

in project.properties:

target=android-21

解决方案

Follow these steps

  • Right click, Properties of google-play-services_lib project
  • goto java compiler and set it to 1.5
  • goto android and set project build target to android 6.0
  • make sure you installed latest update for android sdk tools and google play services in your sdk

Close the project and Open it, this helps too.

这篇关于未找到与给定名称相匹配的资源'@android:style / Theme.Material.Light.DialogWhenLarge.NoActionBar'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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