gpt4 book ai didi

java - 检索项目 :No resource found that matches the given name 'Theme.AppCompat.Light' . 的父项时出错 MY R.java 丢失

转载 作者:太空宇宙 更新时间:2023-11-03 13:21:47 24 4
gpt4 key购买 nike

谷歌现在有 Android Lollipop,我打开了我的 sdk 管理器并决定更新几个包......这让我从 2 天开始感到烦恼。 Can't find theme

我也试过这个:Failed to rename directory

不成功。我试图从谷歌下载一个新的 sdk 并从头开始安装,但没有成功。这是错误。

D:\~\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

D:\~\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

D:\~\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.


[1]: https://stackoverflow.com/questions/8839255/failed-to-rename-directory-tools-to-temp-toolpackage-old01-in-c-android-sdk-win

如果有人帮助我尝试运行我的 eclipse Juno,我将非常感激。我还可以说我的一些旧应用程序可以使用较低版本,但是当我创建一个新应用程序时...错误:

import android.support.v7.app.ActionBarActivity; It is not reading the android.suppor.v7

然后如果我将它引用到我的 android 应用程序,我有一个!签名和很多错误,例如:

   D:\Android Studio\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
D:\Android Studio\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
D:\Android Studio\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.

最佳答案

我解决了gradle中变化的问题

compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.android.support:support-v4:21.0.0'

compile 'com.android.support:appcompat-v7:19.0.0'
compile 'com.android.support:support-v4:19.0.0'

并将 sdk 编译/目标为 19

关于java - 检索项目 :No resource found that matches the given name 'Theme.AppCompat.Light' . 的父项时出错 MY R.java 丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26718480/

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