The project was not built since its build path is incomplete

前端 未结 18 1389
一向
一向 2020-12-04 15:29

Every time I try to import a project downloaded from googlecode into Eclipse but I get some errors:

The project was not built since its build

18条回答
  •  孤街浪徒
    2020-12-04 15:44

    Steve's answer does help for some projects, but still, for some projects, it remains the same. I guess that projects were previously build-in early JDK 1.5 (in my case). But I found a workaround for them:

    1. Find the class that causes the problem (Keep expanding the project in the Package Explorer).
    2. Copy the class's contents after the import block.
    3. Delete the whole class.
    4. Right Click on the project then Android Tools >> Fix Project Properties
    5. Create a class with the same name under the same package the deleted class was before. (If the project is imported and the deleted class was an Activity/Service/Provider/Reciever, I guess the class is already included in the AndroidManifest.xml).
    6. Paste the content of the class and import packages.
    7. Clean the project.

提交回复
热议问题