开发者

Android Eclipse Resources refresh/caching problem

开发者 https://www.devze.com 2023-03-05 23:42 出处:网络
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

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

精彩评论

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