Your project contains error(s), please fix it before running it

前端 未结 26 2527
暖寄归人
暖寄归人 2020-12-04 05:31

I am developing a simple Android application. But when I run Eclipse, it shows the following error:

Your project contains error(s), please fix it befo

26条回答
  •  醉梦人生
    2020-12-04 06:04

    I had this exact problem when trying to run the Doodlz app, from the book Android for Programmers, on Mac OS X with Eclipse Juno.

    After downloading and unzipping the demos from the book, I forgot to change the permission of the files. They were read-only on my system so this was the first issue.

    The second issue was solved by selecting a build target on Eclipse. This was fixed by going to: Project > Properties , and clicking the Android field on the left panel to be able to select one option as the Project Build Target, which in my case was:

      Target Name     Vendor         Platform    API Level
    > Google APIs     Google Inc.    4.0.3       15
    

    Then cleaning and rebuilding the project showed no errors.

    Finally, to run the app right-click the package (at the Package Explorer tab) and then select: Run As > Android Application

提交回复
热议问题