I try to use the android development tools trough Eclipse Luna.
Exactly I try to use the JBoss for cordova developmet
I have a problem to run the Android emulator. So I tried first to create a clear Android Application project and it have the following error.
enter image description here
enter image description here What should I do to fix them and run the emulator properly?
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>
1 Answer 1
ActionBar is found in support library v7. Maybe it's missing. You can right click in your project -> Properties -> Android There you should see a library added with a green mark like the following: enter image description here
If you don't have any library there, you should import the library by going to: File -> Import -> Android -> Existing Android Code Into Workspace Then look for your library v7 into the sdk folder like the following picture:
enter image description here
Then click finish:
enter image description here
And go back to right click on your project and go to properties to add the library by clicking in the Add... button and selecting the library:
enter image description here
Hope this solves your problem!
styles.xmlthat is causing ANT to fail to build yourRfile, causing errors inMainActivity. Please post the contents ofstyles.xml. Check the console (not error log) for more info.Chris' method below, it seems as if you are missingappcompat_v7.