Unknown error: java.lang.NullPointerException.

本文介绍了解决Android项目中出现的RT错误的方法。当在Eclipse中创建新的Android项目时可能会遇到此问题,解决步骤包括编辑.project文件并删除<linkResources>部分,然后重新设置链接并清理项目。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

编译工程的时候遇到RT错误,诡异的是之前都是好的,我就改了改makefile和lib工程的文件


最后找到了方法



I was getting the error when I created a new Android project from source in eclipse and it stumped me for a bit until I took a look at the .project file.  For some reason even after I updated the library links, the old links were not removed.  This is what was causing the Unknown error: java.lang.NullPointerException.

This should cause the workspace to be re-built and the .project file will get corrected.To fix it close Eclipse and edit your .project file and remove the <linkResources> section and ALL of the links inside. Then go back into eclipse re-setup the links and do a clean (Project->Clean in the menu) on the affected project.

Happy Developing!



把 .project 下面的 <linkResource>标签删掉,clean再build就对了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值