Android 通过 Eclipse 开发

Android development through Eclipse

我尝试通过 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>

ActionBar 在支持库 v7 中找到。也许它不见了。 您可以右键单击您的项目 -> 属性 -> Android 在那里你应该看到一个库添加了一个绿色标记,如下所示:

如果那里没有任何库,您应该通过以下方式导入库:文件 -> 导入 -> Android -> 现有 Android 代码到工作区 然后在sdk文件夹中查找你的库v7,如下图:

然后点击完成:

然后返回右键单击您的项目并转到属性以通过单击“添加...”按钮并选择库来添加库:

希望这能解决您的问题!