首页 > 移动平台 > 详细

android第一天错误

时间:2016-01-25 21:10:25      阅读:168      评论:0      收藏:0      [点我收藏+]

1.自己写的activity并在AndroidManifest.xml中注册 在模拟机上运行时出现

No Launcher activity found!
The launch will only sync the application package on the device!
 
模拟机中没有文件 
 
解决方法:在注册时 AndroidManifest.xml中

<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>

MAIN误写为Main导致错误

 

2.项目有错误 但是每个文件都没有错误,错误提示为the project was not built due to "a resource exists with adifferent case

解决方法:包名不一致 生成项目时为com.example.activitytest  自己在src中新建包时不使用这个包名导致错误

android第一天错误

原文:http://www.cnblogs.com/XDMrWu/p/5158654.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!