开发者

Android Eclipse Resources refresh/caching problem

I try to develop my first Android app with Eclipse and the Android maven plugin. If I build and deploy my app to a virutal device for the first time, everything works fine. But if I change a layout, I got strange NullPointerExceptions on running the app again. Some Views are not find or I got a class cast exception, because the views I search by id are of the wrong ty开发者_高级运维pe. So I have to rename same views and build again. After that it works. That ist a strange caching/recompile behavior. If i juist build and deploy my *.apk with maven, it works everytime. Any ideas? Thanks a lot.


At times i face this issue with eclipse or RSA[rational software architect].Use project->clean to compile and build, even in the case you selected "Build Automatically". This works most of the times.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜