我在 Eclipse 中有 holoeveywhere“正在运行”,我可以成功构建“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 Manager 本身启动模拟器,但它没有工作。我的配置有什么问题?我该如何解决?非常感谢任何提示。
谢谢!
编辑
这是我的 windows 环境路径变量名称:路径值: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\Downloads\Development\adt-bundle-windows-x86\adt-bundle-windows-x86\sdk\platform-tools
这是我的运行配置的屏幕截图。别担心,我用的是jdk。