Install Android Maven SDK Deployer in Windows 8


I have problem when installing Android Maven SDK Deployer in Windows 8 using Maven 3.1.0 which lead me to this errors:

1
Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project compatibility-v7-gridlayout: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources failed: A required class was missing while executing com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources: Lorg/sonatype/aether/RepositorySystem;

Then I can install it succesfully after fixed several things. Here is the guide.

1. Using Maven 3.0.5
I was using Maven 3.1.0 and this lead to errors. Please use Maven 3.0.5 instead.

2. Install all extras in Android SDK Manager

3. Solving Google Maps
If we’re installing for “mvn install -P 2.3.3”, Then we need to add google android maps APIS 10. Eg:

1
mvn install:install-file -DgroupId=com.google.android.maps -DartifactId=maps  -Dversion=10  -Dpackaging=jar -Dfile=<YOUR_ANDROID_SDK_HOME>add-onsaddon-google_apis-google_inc_-10libsmaps.jar

Or, if we’re installing “mvn install -P 4.2”, then this the example:

1
mvn install:install-file -DgroupId=com.google.android.maps -DartifactId=maps  -Dversion=16_r3  -Dpackaging=jar -Dfile=<YOUR_ANDROID_SDK_HOME>add-onsaddon-google_apis-google-17libsmaps.jar
1
2
3
4
5
cd maven-android-sdk-deployer/
mvn install -P 4.2
#Add V4 support library (to use FEST Android)
cd extras/compatibility-v4/
mvn install

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.