记录一下maven android 的启动命令
2014-01-04 20:56
267 查看
今天折腾了一天把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
[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
相关文章推荐
- 用到的一些Android pm命令,记录一下
- 记录一下八款开源 Android 游戏引擎
- Android学习记录(五) 记录一下最近遇到的坑:android actionbar menu菜单无显示。
- 记录一下selenium+maven+svn+jenkins+junit构建无人值守的自动化测试环境
- 记录一下八款开源 Android 游戏引擎
- Android 应用启动闪白一下处理方法
- Android实现点击通知栏后,先启动应用再打开目标Activity ,极光推送等推送的也可以参考一下(转)
- Maven学习记录之maven基本操作命令,maven本地工厂的创建,maven骨架的生成,以及在eclipse中创建maven工程:
- 记录一下八款开源 Android 游戏引擎
- android 记录一下自己的微信支付
- android开发,隐藏启动图标方法记录
- Qt for Android 程序启动闪一下黑屏的优化方法
- 使用maven命令启动tomcat7
- 学习记录:对maven项目使用命令下载jar包
- Android 开源(记录一下自己的github开源小项目)
- Android启动应用时闪一下黑屏
- Maven多web模块工程构建各种Error listenerStart启动失败情况及最终解决过程记录
- 记录一下在Android使用Json解析字符串
- 记录一下我的Android项目里的基类的的基本设计
- 【问题记录】centos 开机启动命令未执行