Error “Caused by: java.lang.ClassNotFoundException:”

后端 未结 4 795
面向向阳花
面向向阳花 2021-01-20 14:21

During android vogella tutorial regarding to sqlite I have encountered annoying problem with following error:

09-05 09:18:06.127: E/AndroidRuntime(981): Cau         


        
4条回答
  •  死守一世寂寞
    2021-01-20 15:17

    I had this problem once. The code was working previously and suddenly it stopped working (crash at app startup) when I synced and built an older version of the code.

    The fix was to just close and restart Eclipse and clean the project and clean all the dependent library projects. Then it started working properly again.

    It's some sort of build problem in Eclipse, when refreshing the project files.

    Update: In particular, if you've accidentally modified the ".classpath" file (to revert to an older version), Eclipse/Android SDK can get confused and not build the project properly. When you restart Eclipse and clean the project, Eclipse will re-modify the ".classpath" file, and build properly.

提交回复
热议问题