I've learned it's best to download the ADT bundle rather than try to add the ADT plugin to an existing eclipse install.
http://developer.android.com/sdk/index.html
This version seems to have good performance on mac too.
Android Developer Tools
Build: v22.0.0-675183
Just create a sample Android application using the usual eclipse menus.
Then convert to maven use m2e-android
then edit with the following to get it to work at the command line.
Then update project settings from the maven context menu.
you can now deploy to emulator and usb with the following command lines.
mvn clean install android:redeploy -Dandroid.device=emulator android:run -X -Dandroid.ndk.path=/opt/local/share/java/android-ndk-macosx -Dandroid.sdk.path=/opt/local/share/java/android-sdk-macosx/
mvn clean install android:redeploy -Dandroid.device=usb android:run -X -Dandroid.ndk.path=/opt/local/share/java/android-ndk-macosx -Dandroid.sdk.path=/opt/local/share/java/android-sdk-macosx/
or run as Android Application in the usual way in eclipse.
4.0.0
SupportAppNavigation
SupportAppNavigation
0.0.1-SNAPSHOT
apk
4.1.1.4
UTF-8
com.google.android
android
${platform.version}
provided
com.google.android
annotations
${platform.version}
com.google.android
support-v4
r7
commons-io
commons-io
2.1
${project.artifactId}
src
com.jayway.maven.plugins.android.generation2
android-maven-plugin
3.6.0
true
maven-compiler-plugin
2.3.2
1.6
1.6
com.jayway.maven.plugins.android.generation2
android-maven-plugin
3.6.0
${project.basedir}/AndroidManifest.xml
${project.basedir}/target/assets
${classifier}
${project.basedir}/res
${project.basedir}/src/main/native
17
true
true
true
org.apache.maven.plugins
maven-dependency-plugin
2.5.1
Saturday, May 25, 2013
Sample Android App Maven Pom for Eclipse ADT Bundle
Subscribe to:
Post Comments (Atom)
BUT Maven is not installed with ADT Bundle!!! How to add it after ADT Bundle is installed?.
ReplyDelete