Java Android Eclipse - Eclipse error: NoClassDefFoundError: java/lang/ref/FinalReference

摘要:Java Android Eclipse - Eclipse error: NoClassDefFoundError: java/lang/ref/FinalReference

http://stackoverflow.com/questions/9455236/eclipse-error-noclassdeffounderror-java-lang-ref-finalreference

從網路上找到這個問題的解法

 

Eclipse error: NoClassDefFoundError: java/lang/ref/FinalReference

 

更改設定如下

 

  1. Find Running configurations -> java application
  2. In the new configuration's Classpath tab, find "Android Library" under Bootstrap Entries and remove it.
  3. Still in the Classpath tab, select Bootstrap Entries and click the Advanced button.
  4. Choose Add Library and click OK.
  5. Select JRE System Library and click Next.
  6. Select Workspace Default JRE and click Finish.