Some Errors Usually Seen In Android Project

1. If you import other people's code(based on jdk1.7 or 1.6) to your eclipse whose java compiler is 1.5, it will cause a problem. "@override" error is caused by incompatible jdk version. You can right click your project "Android tools" -> "Fix Properties" to fix it.

2. If you import a project without AndroidManifest.xml and project.properties, u cannot import them. U can choose to create project with existing code.

3. If ADT version is below 18, there exists "default.properties" instead of "project.properties" file.

4. If the error is "R cannot be resolved to a variable.", there must be some problem in your "res" file.

5. If you open a layout file and graphical view cannot be displayed normally, it's because the ADT haven't been loaded correctly. You just need to close the project and reopen it.

6. If you load project to android simulator, the console prints “Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse l” . The reason is you import the project directly, the project will create a jar named "Android Denpendencies", you add right click project->Build path, and remove the "Android Denpendencies" jar, it will be ok.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值