Eclipse下Android工程开发问题解决办法合集

来源:互联网 发布:手机淘宝秒杀的技巧 编辑:程序博客网 时间:2024/05/17 05:07

1.Your project contains error(s),please fix them before running your application.

参考链接:删除两个文件再重新导入


2.安卓模拟器怎么总是提示"unfortunatyl launcher has stopped"

解决办法:查看工程中的log,一般是空指针异常,相关的变量没有实例化。


3. Unable to resolve target 'android-17'

解决办法:该文件中的版本


4.res\drawable-hdpi\Flashlight.xml: Invalid file name: must contain only [a-z0-9_.]

错误原因:文件夹下的图片不能大写


5.java.lang.classcastexception类匹配异常

这是在强制转化的时候匹配出错,应该检查一下java代码中的 变量在转化的时候是否出错。

参考链接


6.解决办法参考链接

解决方法:项目(Project)右击属性,或者Project-Properties,然后选择Java Build Path-Libraries-Add JARs,选中刚才报错的文件的根目录,然后OK。

问题OK。


7.出现styleable cannot be resolved or is not a field问题

和楼主描述的一模一样,删除导入的R文件就好了



8.XX cannot be resolved to a type,导入工程时出现的问题。

解决方法

styleable cannot be resolved or is not a field

styleable cannot be resolved or is not a field

styleable cannot be resolved or is not a field

styleable cannot be resolved or is not a field

styleable cannot be resolved or is not a field


阅读全文
1 0
原创粉丝点击