【发布时间】:2015-02-11 07:25:55
【问题描述】:
我尝试通过 Eclipse Luna 使用 android 开发工具。
正是我尝试将 JBoss 用于cordova developmet
我在运行 Android 模拟器时遇到问题。所以我首先尝试创建一个清晰的Android应用程序,它有以下错误。
我应该怎么做才能修复它们并正确运行模拟器?
styles.xml
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>
【问题讨论】:
-
您在
styles.xml中遇到问题,导致ANT 无法构建您的R文件,从而导致MainActivity中出现错误。请张贴styles.xml的内容。检查控制台(不是错误日志)了解更多信息。 -
我认为该项目缺少 android 支持库。右键单击项目 -> Android 工具 -> 添加支持库
-
@MattClark 这里是文件filedropper.com/styles_2
-
@ThahzanMohomed 我试过了,但它给了我 [2015-02-11 09:32:57 - SDK Manager] URL 未找到:C:\Program Files (x86)\Android\android-sdk \temp\support_r21.0.3.zip(拒绝访问)[2015-02-11 09:32:57 - SDK Manager] 完成。没有安装任何东西。
-
让这个文件只用默认数据抛出错误意味着你应该尝试下面的
Chris'方法,好像你错过了appcompat_v7。