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

标签 java android eclipse updating r.java-file

谷歌现在有 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/

相关文章:

java - 如何在 Eclipse 中获取选定的代码?

java - 如何将Oracle驱动程序依赖添加到Spring Data Flow Server?

Java - 二进制搜索()。如何为拼写检查设置 binarySearch

android - ./Gradlew Build 需要 2 小时 40 分钟 - 是否有改进的余地?

android - 如何使用 Espresso Android 单击选项菜单上的索引

java - 如何使用junit测试Android sqlite?

java - 在android中裁剪后保存图像

java - 每个线程是否可以有一个唯一的静态变量?

android - 何时应该使用 LRUCache 回收位图?

使用 Subversive 时出现 Eclipse 错误