欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

create maven android project

发布时间:2025/4/16 编程问答 50 豆豆
生活随笔 收集整理的这篇文章主要介绍了 create maven android project 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

2019独角兽企业重金招聘Python工程师标准>>>

Getting Started

The Android Configurator is an Maven Integration for Eclipse (m2e) plug-in that adds maven support for Android Developer Tools (ADT) and the Maven Android Plugin. It brings the power of Maven dependency management into the ADT.

1. Before you start

You will need Eclipse Indigo or Juno installed.

2. Install Android Connector

You can install the Android Connector for Maven via the Eclipse Marketplace. Select Help -> Eclipse Marketplace... and search for "android m2e".

Click the Install button next to the Android Connector for Maven that appears and follow the path through the wizard dialog to install the plug-in and its dependencies (including the Android Development Toolkit and the Maven for Eclipse m2e plug-in). Accept the terms-and-conditions and click Finish.

Once you restart your Eclipse workspace you should be ready to start using the Android Connector.

3. Create Eclipse project

If you already have an Android project please make sure you have created a POM for your project using version 3.0.0 or greater of the maven-android-plugin.

Then right-click on your project and select Configure -> Convert to Maven Project.

If you are starting with a new project you can use the Maven Android archetypes to create Android projects completely within Eclipse:

  • Create a new Maven Project (File -> New -> Project... then select Maven -> Maven Project).
  • When prompted to Select Archetype click Add Archetype...
  • In the dialog that appears enter "de.akquinet.android.archetypes" for Archetype Group Id.
  • In Archetype Artifact Id enter "android-quickstart".
  • In Archetype Version enter "1.0.8" and continue.
  • When prompted enter your desired project group and artifact ID, version and, optionally, set the "platform" property for the Android version (defaults to '10').
  • Click Finish
  • Either way you should end up with an Eclipse project looking something like this:

    转载于:https://my.oschina.net/u/268088/blog/110145

    《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读

    总结

    以上是生活随笔为你收集整理的create maven android project的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。