Android Maven Project

Source: Internet
Author: User

1 Maven-android-sdk-deployer plug-in installation https://github.com/mosabua/maven-android-sdk-deployer through git download project specified in environment variables android_ HOME, Path android_home=f:\tools\adt-bundle-windows-x86_64-20130522\sdk path add:%android_home%\platform-tools;% Android_home%\tools after downloading all the contents of the Android SDK, execute mvn clean install
Execution Result:[INFO]------------------------------------------------------------------------[INFO] Reactor Summary:[INFO][INFO] Maven Android SDK Deployer ......... ........ SUCCESS [0.240s][INFO] Android platforms ..... ..... ................. SUCCESS [0.065s][INFO] Android Platform 1.5 API 3 ........ ......... SUCCESS [0.182s][INFO] Android Platform 1.6 API 4 ........ ......... SUCCESS [0.058s][INFO] Android Platform 2.1 API 7 ........ ......... SUCCESS [0.058s][INFO] Android Platform 2.2 API 8 ........ ......... SUCCESS [0.053s][INFO] Android Platform 2.3.3 API 10 ......... ..... SUCCESS [0.058s][INFO] Android Platform 3.0 API 11 ....... ......... SUCCESS [0.054s][INFO] Android Platform 3.1 API 12 ....... ......... SUCCESS [0.061s][INFO] Android Platform 3.2 API 13 ....... ......... SUCCESS [0.056s][INFO] Android Platform 4.0 API 14 ....... ......... SUCCESS [0.061s][INFO] Android Platform 4.0.3 API 15 ......... ..... SUCCESS [0.061s][INFO] Android Platform 4.1 API 16 ....... ......... SUCCESS [0.182s][INFO] Android Platform 4.2 API 17 ....... ......... SUCCESS [2:02.331s][INFO] Android add-ons ..... ..... .................. SUCCESS [0.016s][INFO] Android add-on Google Platform 1.5 API 3 (Maps) ... SUCCESS [0.057s][INFO] Android add-on Google Platform 1.6 API 4 (Maps) ... SUCCESS [0.039s][INFO] Android add-on Google Platform 2.1 API 7 (Maps) ... SUCCESS [0.050s][INFO] Android add-on Google Platform 2.2 API 8 (Maps) ... SUCCESS [0.088s][INFO] Android add-on Google Platform 2.3.3 API Ten (Maps and USB) SUCCESS [0.061s][INFO] Android add-on Google Platform 3.0 API One (Maps). SUCCESS [0.091s][INFO] Android add-on Google Platform 3.1 API (Maps and USB) SUCCESS [0.163s][INFO] Android add-on Google Platform 3.2 API (Maps and USB) SUCCESS [0.158s][INFO] Android add-on Google Platform 4.0 API (Maps and USB) SUCCESS [0.333s][INFO] Android add-on Google Platform 4.0.3 API (Maps and USB) SUCCESS [0.177s][INFO] Android add-on Google Platform 4.1 API (Maps and USB) SUCCESS [0.120s][INFO] Android add-on Google Platform 4.2 API (Maps and USB) SUCCESS [0.124s][INFO] Android Extras ....... ..... ................ SUCCESS [0.028s][INFO] Android compatibility Extra V4 ............ SUCCESS [0.515s][INFO] Android compatibility Extra V7 Gridlayout Library. SUCCESS [4.079s][INFO] Android compatibility Extra V13 ........ ..... SUCCESS [0.113s][INFO] Android Google Analytics Extra ......... ..... SUCCESS [0.032s][INFO] Android Google AdMob Ads Extra ......... ..... SUCCESS [0.033s][INFO] Android Google Cloud Messaging Library Extra Parent SUCCESS [0.019s][INFO] Android Google Cloud Messaging Client Library Extra SUCCESS [0.036s][INFO] Android Google Cloud Messaging Server Library Extra SUCCESS [0.033s][INFO] Android Google Play Services Extra ..... ..... SUCCESS [8.208s][INFO] Android Google Play Licensing Extra ..... ..... SUCCESS [2.435s][INFO] Android extras-apk Expansion ......... ..... SUCCESS [0.020s][INFO] Android Google Play APK Expansion extra-zip ..... SUCCESS [5.850s][INFO] Android Google Play APK Expansion extra-downloader SUCCESS [14.588s][INFO] Android Tools ....... ..... ................. SUCCESS [0.018s][INFO] Android Annotations ......... .............. SUCCESS [0.337s][INFO] repositories ..... ......... ................ SUCCESS [0.150s][INFO] Google m2repository .......... ............. SUCCESS [0.571s][INFO] Android m2repository ......... ............. SUCCESS [3.801s][INFO]------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO]------------------------------------------------------------------------[INFO] Total time:2:47.691s[INFO] finished At:fri Jul 12:21:29 CST[INFO] Final memory:25m/60m[INFO]------------------------------------------------------------------------
※ Error Analysis 1 [INFO] Android Google Play APK Expansion extra-zip .....  FAILURE [1.002s] ... [ERROR] Error: Error reading D:\.m2\repository\com\google\android\android\4.1.1.4\android-4.1.1.4.jar; Error in opening zip file [ ERR] Error: Error reading D:\.m2\repository\com\google\android\android\4.1.1.4\android-4.1.1.4.jar; Cannot read zip file ... "fix "To the path mentioned in the log, open Android-4.1.1.4.jar appears that the error should be that the jar package is not downloaded completely during the download process and cannot be opened at all, so delete the 4.1.1.4 Folder and re-execute MVN clean install-p 2.3.3 Successful execution
2 Create Android-quickstart-archtype (create Maven Android prototype) first point to the MAVEN command: MVN archetype:generate-darchetypeartifactid= Android-quickstart-darchetypegroupid=de.akquinet.android.archetypes-darchetypeversion=1.0.11-dgroupid= Com.neusoft-dartifactid=my-android-application can also append parameter-dpackage=your.company.android package name-Demulator=my-a VD Simulator Download the relevant jar package ※ Archetypeartifactid, Archetypegroupid, archetypeversion are possible changes, need tohttp://search.maven.org/InputAndroid-quickstart Query the latest version of the project was created successfully
3 Eclipse Create Maven-anroid-quickstart Project 1) new MAVEN Project 2) Use the default option to continue to the next 3) Select template to filter by entering Android in filter, select Android-quickstar T next if there is no android-quickstart, you need to click "Add Archetype ..." to add a template based on http://search.maven.org/search results Enter Group ID, Artifact ID, versi On select 4) Specify Project Options 5) New project will have Red fork, • Right-click Project →maven→update project configuration window→performance→maven→discovery→ "Open Catalog" Download M2E Connector for Android "note" Platform Select version too low will cause the project to appear Red Fork, select 16 will not error



From for notes (Wiz)

Android Maven Project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.