Cannot find the class file for java.lang.Object

前端 未结 9 1352
醉梦人生
醉梦人生 2021-02-12 16:31

I reinstalled my eclipse. and then imported all the projects in the Eclipse, but every project has a common error:

Cannot find the class file for java.lang.Object.

相关标签:
9条回答
  • 2021-02-12 17:13

    Right click on Project--> Properties, Java Build Path.

    enter image description here

    Check whether you have JRE installed. If installed click on EDIT and check whether its pointing to correct location

    enter image description here

    0 讨论(0)
  • 2021-02-12 17:13

    A quicker way will be

    Right Click Project---> Properties--->Build Path--->Add External Jars--> Find your android-xx.Jar e.g android-17.jar

    In my case I'm using the adt and it is here

    E:\adt-bundle-windows-x86_64-20130219\adt-bundle-windows-x86_64-20130219\sdk\platforms\android-17

    Hope it helps

    0 讨论(0)
  • 2021-02-12 17:18

    I just had this problem and all I had to do was clean the entire workspace, i.e. all projects in the workspace. The error went away.

    0 讨论(0)
提交回复
热议问题