检索项目的父项时出错:找不到与给定名称“Theme.AppCompat.Light”匹配的资源。 我的R.java失踪了

谷歌现在已经安装了Android Lollipop,我开了我的sdk经理并决定更新几个套餐……它让我从2天开始流连忘返。 找不到主题

我也试过这个: 无法重命名目录

不成功。 我试图从谷歌下载一个新的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 

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

import android.support.v7.app.ActionBarActivity; 它不是在读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'. 

对于我最新的(21.0.2)版本的Android支持库,解决方案是将appcompat_v7项目的构建目标更改为API 21(Android 5.0),清理并重建。

我解决了在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

您是否尝试将目标SDK更新为21并构建项目?

有同样的问题……也许一个解决方案是下载旧的SD并且不更新它。