maven android,记录一下maven android 的启动命令

今天折腾了一天把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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值