简体   繁体   English

使用Eclipse开发Android Maven项目

[英]Develop with Eclipse an Android Maven project

I am trying to run the official HelloFlashlight sample provided by the android-maven-plugin , but Eclipse displays this error. 我正在尝试运行android-maven-plugin提供的官方HelloFlashlight示例 ,但是Eclipse显示此错误。

Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:consume-aar (execution: default-consume-aar, phase: compile) 生命周期配置未涵盖的插件执行:com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:consume-aar(执行:default-consume-aar,阶段:compile)

Here is what I did. 这是我所做的。

  1. Create the HelloFlashlight project in Eclipse 在Eclipse中创建HelloFlashlight项目
  2. "Configure / Convert to Maven Project" “配置/转换为Maven项目”

I tried using mvn eclipse:eclipse , but I learned that it was not a good idea . 我尝试使用mvn eclipse:eclipse ,但是我知道这不是一个好主意

I added the XML snippet provided in another SO answer , but all I got was a new error (in addition to the previous one). 我添加了另一个SO答案中提供的XML代码段,但我得到的只是一个新错误(除了前一个错误之外)。

Execution default-apk of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:apk failed: Unable to load the mojo 'apk' (or one of its required components) from the plugin 'com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2' (com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:apk:default-apk:package) 目标com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:apk的执行default-apk失败:无法从插件加载mojo'apk'(或其必需组件之一) 'com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2'(com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.2:apk:default- apk:包)

I am missing something? 我想念什么吗?

My configuration: 我的配置:

  • Eclipse Kepler Service Release 1 (Build id: 20130919-0819) Eclipse Kepler Service Release 1(内部版本:20130919-0819)
  • m2e - Maven Integration for Eclipse - 1.4.0.20130601-0317 m2e-适用于Eclipse的Maven集成-1.4.0.20130601-0317
  • Android Development Tools - 22.3.0.v201310242005-887826 Android开发工具-22.3.0.v201310242005-887826
  • Android Configurator for M2E - 0.4.3 适用于M2E的Android Configurator-0.4.3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM