成立后的And​​r​​oid支持-V7-appcompat R.java丢失 [英] After setting up android-support-v7-appcompat R.java is missing

查看:110
本文介绍了成立后的And​​r​​oid支持-V7-appcompat R.java丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想改变我的Eclipse项目,使之向后兼容到Android 2.1。 我跟着指示建立支持库从这里但之后,我连接库项目我的项目中,R.java从消失的根目录。

I am trying to change my Eclipse project to make it backward compatible to Android 2.1. I followed the instructions to set up the Support Library from here but after I attached the Library project to my project, the R.java from the gen directory gone.

另外,我得到了在控制台中的一些错误,如:

Plus I got some errors in the console, like:

[2013-09-02 00:08:26 - gitarshopAndroidClient] /usr/local/external/android-sdk-linux/extras/android/support/v7/appcompat/res/values-v14/styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
[2013-09-02 00:08:26 - gitarshopAndroidClient] /usr/local/external/android-sdk-linux/extras/android/support/v7/appcompat/res/values-v14/styles_base.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'.
[2013-09-02 00:08:26 - gitarshopAndroidClient] /usr/local/external/android-sdk-linux/extras/android/support/v7/appcompat/res/values-v14/styles_base.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'.

你知道吗?

推荐答案

好吧,我想通了什么问题。

Okay, I figured out what was the problem.

我的项目的建设目标是Android 2.1的(API 7)。 我只好目标的Andr​​oid 4.0(API 14)至少摆脱了警告信息。

The build target of my project was Android 2.1 (API 7). I had to target Android 4.0 (API 14) at least to get rid of the warning message.

你的应用程序将仍然运行在Android 2.1器件!这是我错过焕我设置目标错误。

YOUR APP WILL STILL RUN ON Android 2.1 DEVICES! This is what I missed whan I set up the target wrongly.

这篇关于成立后的And​​r​​oid支持-V7-appcompat R.java丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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