今天折腾了一天把android maven 插件在eclipse 上安装成功。然后启动总是报错。


[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr

oid-maven-plugin:3.6.0:run (default-cli) on project androiddemo: Unable to run l

auncher Activity: Starting: Intent { cmp=org.xiami.androiddemo/.HelloAndroidActi

vity }

[ERROR] Error type 3

[ERROR] Error: Activity class {org.xiami.androiddemo/org.xiami.androiddemo.Hello

AndroidActivity} does not exist.

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

ch.

[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 rea

d the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc

eption


原因是使用命令错误。我使用的启动命令为 mvn android:run 不过此时项目并没有部署到设备上。 当然也是文档没有细读的原因。正确的命令是


mvn clean install android:deploy android:run

更多相关文章

  1. android 命令行执行java 的方式
  2. android adb常用命令整理
  3. Android官方命令深入分析之AVD Manager
  4. android keytool 不是内部命令或外部命令在 (win7下不能用的解决
  5. Android 开发中常用的adb命令
  6. Android gradle 命令行打包
  7. ReactNative 命令生成bundle文件
  8. Android环境变量作用--命令行操作
  9. android adb am命令

随机推荐

  1. ubuntu下Android源码下载编译运行,单独编
  2. android:duplicateParentState="true"
  3. android 创建快捷图标demo
  4. #Android(安卓)Ticks#Mount a filesystem
  5. android 数据保存与提取
  6. Android(安卓)ProgressBar 进度条
  7. android 全屏 去掉标题栏
  8. android imageUtil
  9. android 之RadioButton单选控件
  10. The Android(安卓)Versions History : Cu