Rem*_*ble 10 android android-appcompat r.java-file android-support-library
我正在尝试更改我的Eclipse项目,使其向后兼容Android 2.1.我按照说明从这里设置了支持库, 但在我将Library项目附加到我的项目后,gen目录中的R.java消失了.
另外我在控制台中遇到了一些错误,例如:
[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'.
Run Code Online (Sandbox Code Playgroud)
任何的想法?
Rem*_*ble 20
好的,我想出了问题所在.
我的项目的构建目标是Android 2.1(API 7).我不得不至少针对Android 4.0(API 14)去除警告信息.
您的应用程序仍将在Android 2.1设备上运行!这是我错过了我错误设置目标的原因.
| 归档时间: |
|
| 查看次数: |
33308 次 |
| 最近记录: |