Android 常见错误
2011-03-30 11:32
417 查看
我只说下我遇到的几个问题和解决的方法
一, 新建项目出错,提示:missing required source folder GEN
解决方法,把gen目录下的R.java删除,项目自动刷新出一个新的R.java,解决
二,run的时候出错: Activity class {XXX} does not exist
原因是没有指定执行包
解决方法 : 在launch里指定要执行的包
三,缺少Virtual Device 也就是常说的AVD(Android Virtual Device)
解决办法:看网上说的又是执行命令又是什么的,说的有些乱
我的解决办法就是不要管,执行的时候会提示你新做一个AVD,按着提示填个AVD的名字,然后再选个版本,搞定
.
四,最后还是报了一个warning : ActivityManager: Warning: Activity not started, its current task has been brought to the front
* If the project contents haven't changed, the app will not be downloaded a second time.
如果项目内容没有被改变,应用将不被再次下载,所以如果不修改内容再次运行程序会报此错误。
* If the project contents have changed, but the project hasn't been built, the app won't be downloaded. Normally, auto-build is turned on, but there is a "Build Automatically" setting and if it's turned off, your app won't build when you press "Save".
如果项目的内容已经被改变了,但是项目可能没有重建,应用程序也不会被再次下载。正常情况下,auto-build是被打开的,但是如果设置中的"build Automatically"是被关着的,那么即使你修改程序了,保存了,也不会被重建的。
查看“build Automatically”:Windows->Preferences->General->Workspace Build Automatially *is* checked
点开图标,显示运行效果
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/shiyuntian_wang/archive/2010/03/25/5414437.aspx
一, 新建项目出错,提示:missing required source folder GEN
解决方法,把gen目录下的R.java删除,项目自动刷新出一个新的R.java,解决
二,run的时候出错: Activity class {XXX} does not exist
原因是没有指定执行包
解决方法 : 在launch里指定要执行的包
三,缺少Virtual Device 也就是常说的AVD(Android Virtual Device)
解决办法:看网上说的又是执行命令又是什么的,说的有些乱
我的解决办法就是不要管,执行的时候会提示你新做一个AVD,按着提示填个AVD的名字,然后再选个版本,搞定
.
四,最后还是报了一个warning : ActivityManager: Warning: Activity not started, its current task has been brought to the front
* If the project contents haven't changed, the app will not be downloaded a second time.
如果项目内容没有被改变,应用将不被再次下载,所以如果不修改内容再次运行程序会报此错误。
* If the project contents have changed, but the project hasn't been built, the app won't be downloaded. Normally, auto-build is turned on, but there is a "Build Automatically" setting and if it's turned off, your app won't build when you press "Save".
如果项目的内容已经被改变了,但是项目可能没有重建,应用程序也不会被再次下载。正常情况下,auto-build是被打开的,但是如果设置中的"build Automatically"是被关着的,那么即使你修改程序了,保存了,也不会被重建的。
查看“build Automatically”:Windows->Preferences->General->Workspace Build Automatially *is* checked
点开图标,显示运行效果
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/shiyuntian_wang/archive/2010/03/25/5414437.aspx
相关文章推荐
- android学习——android 常见的错误 和 解决方法
- 初学者常见错误,android的多线程更新UI
- Android 应用中十大常见 UX 错误
- Android 应用中十大常见 UX 错误
- Android自动化压力测试之Monkey Test Android常见的错误类型及黑白名单的使用方法(四)
- android常见错误(实时更新)
- Android常见错误笔记
- android开发常见编程错误总结
- Android ADT安装技巧其常见错误处理
- android stuido 常见错误整理
- ubuntu13.04下载 编译android 4.0 (二) 内涵常见错误
- android常见错误--INSTALL_FAILED_DEXOPT
- Android常见错误汇总
- Android 下arcgis开发学习第二天--扫清常见错误
- android常见错误-
- Android常见莫名错误集合
- 使用javah到处类的头文件时常见错误:找不到android.app.Activity的类文件
- android常见的异常错误
- 编译Android 4.0.3的常见错误
- Android源码make常见错误