HoloEverywhere 1.4.2 + Maven没有构建演示Android项目

时间:2013-01-20 21:28:29

标签: android maven-3 maven-plugin m2eclipse android-holo-everywhere

我在eclipse中有“运行”的holoevey,我可以成功构建“HoloEverywhere Build”,如此链接所示。 https://github.com/ChristopheVersieux/HoloEverywhere/wiki/Maven

然而,当我尝试构建“HoloEverywhere Demo Run”时,我收到此错误。请记住,我的目标与他android:deploy& android:run。我也选择Skip Tests。 我确保在安装的jre中引用了正确的库,并且我在jre选项卡中选择了最新的jdk用于运行配置。

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building HoloEverywhere Demo 1.4.2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- android-maven-plugin:3.5.0:deploy (default-cli) @ demo ---
[INFO] C:\Users\Akhil\Downloads\Development\adt-bundle-windows-x86\adt-bundle-windows-x86\sdk\platform-tools\aapt.exe [dump, xmltree, C:\Users\Akhil\HoloEverywhere\demo\target\demo-1.4.2.apk, AndroidManifest.xml]
[INFO] Found 0 devices connected with the Android Debug Bridge
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Skipping HoloEverywhere Demo
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.801s
[INFO] Finished at: Sun Jan 20 16:22:07 EST 2013
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.0:deploy (default-cli) on project demo: No online devices attached. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

是因为我的模拟器没有启动吗?我试图通过AVD管理器本身启动模拟器,但它不起作用。 我的配置有什么问题?我该如何解决? 任何提示都非常感谢。

谢谢!

修改

这是我的windows环境Path变量 名称:路径 值:C:\ Program Files \ Intel \ WiFi \ bin \; C:\ Program Files \ Common Files \ Intel \ WirelessCommon \; C:\ Program Files \ Java \ jdk1.7.0_11 \ bin; C:\ Users \ Akhil \下载\发展\ ADT-束窗口86 \ ADT-束窗口86 \ SDK \平台的工具

以下是我的运行配置的屏幕截图。别担心,我使用的是jdk。 HoloEverywhere Demo Run - Run Configuration

1 个答案:

答案 0 :(得分:0)

来自here

  

在mvn android:deploy之前运行mvn android:emulator-start。 maven插件无法部署到不存在的模拟器。