NoClassDefFoundError on external library project for Android

前端 未结 7 1653
孤独总比滥情好
孤独总比滥情好 2020-11-29 08:24

I use eclipse for Google Android development.

I\'ve created a library project ([x] Is Library in the Android-settings), which includes an external jar-f

7条回答
  •  生来不讨喜
    2020-11-29 09:04

    For those who followed the steps(even check the projects in "Order and Export") and still have the java.lang.ClassNotFoundException in the API 17, the final step is to check that your compiler does not run with Java 1.7. If is 1.7 then you should change it to 1.6 for all your projects. After that it will ask to rebuild all the projects and successfully ran on my phone :)

    To change the java compile version in eclipse, this is located in: Project properties > Java Compiler > Compiler Compliance level: 1.6

提交回复
热议问题