错误检索父项:未发现的资源匹配给定名称“Theme.AppCompat.Light”。我的R.java缺失 [英] Error retrieving parent for item:No resource found that matches the given name 'Theme.AppCompat.Light'. MY R.java is missing
问题描述
谷歌现在已经Android的棒棒糖,我打开了我的SDK管理器,并决定更新情侣套餐......这是2天furstrating我。 <一href="http://stackoverflow.com/questions/17870881/cant-find-theme-appcompat-light-for-new-android-actionbar-support">Can't寻找主题
我也试过这样:<一href="http://stackoverflow.com/questions/17870881/cant-find-theme-appcompat-light-for-new-android-actionbar-support">Failed重命名目录
不成功。我试图从谷歌下载一个新的SDK,并从头开始安装,没有再工作。 以下是错误。
D:\〜\水库\值\ styles.xml:7:错误:错误检索父项:未发现的资源匹配给定名称Theme.AppCompat.Light 。
D:\〜\水库\值-V11 \ styles.xml:7:错误:错误检索父项:未发现的资源匹配给定名称Theme.AppCompat.Light。
D:\〜\水库\值-V14 \ styles.xml:8:错误:错误检索父项:未发现的资源匹配给定名称Theme.AppCompat.Light.DarkActionBar。
[1]: http://stackoverflow.com/questions/8839255/failed-to-rename-directory-tools-to-temp-toolpackage-old01-in-c-android-sdk-win
我会很感激,如果有人帮我尝试运行我的Eclipse朱诺。我也可以说,我的一些老的应用程序正在使用低版本的,但是当我创建一个新的...错误:
进口android.support.v7.app.ActionBarActivity;
它不读android.suppor.v7
那么,如果我引用它给我的Android应用我有!签署和大量的错误,如:
D:\机器人Studio\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:193:错误:错误:未发现的资源匹配给定名称:ATTR机器人:colorControlNormal。
D:\机器人Studio\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:190:错误:错误:未发现的资源匹配给定名称:ATTR机器人:colorPrimary。
D:\机器人Studio\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:191:错误:错误:未发现的资源匹配给定名称:ATTR机器人:colorPrimaryDark。
有关我与最新的(21.0.2)版本的Android支持库的解决方案是更改构建目标appcompat_v7项目API 21(安卓5.0) ,清洁和重建。
Google has now Android Lollipop, I opened my sdk manager and decided to update couple of packages... It is furstrating me from 2 days. Can't find theme
I have also tried this: Failed to rename directory
Unsuccessful. I tried to download a new sdk from Google and install from scratch, did not work again. Here is the error.
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]: http://stackoverflow.com/questions/8839255/failed-to-rename-directory-tools-to-temp-toolpackage-old01-in-c-android-sdk-win
I will be very thankful if someone help me try running my eclipse Juno. I can also say that some of my old apps are working with lower version, but when I create a new one... error:
import android.support.v7.app.ActionBarActivity;
It is not reading the android.suppor.v7
then if I reference it to my android app I have a ! sign and lots of mistakes like:
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'.
For me with the latest (21.0.2) version of Android Support Library the solution was to change the build target for appcompat_v7 project to API 21 (Android 5.0), clean and rebuild.
这篇关于错误检索父项:未发现的资源匹配给定名称“Theme.AppCompat.Light”。我的R.java缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!