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

前端 未结 26 2515
暖寄归人
暖寄归人 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:09

    I had this exact same problem. One solution that would work would be to create a brand new project, but I don't think there's any need for that. For me the problem was that the debug certificate that gets auto-generated had expired. Deleting this file allowed Eclipse to rebuild that file, which solved the problem. You can't run an app with an invalid certificate, whether it be a debug or release certificate. Note that cleaning my project did not work. For more information, see: "Debug certificate expired" error in Eclipse Android plugins

    0 讨论(0)
  • 2020-12-04 06:11

    Simply Deleted my debug certificate under ~/.android/debug.keystore and Project->Clean did solve the problem.

    0 讨论(0)
  • 2020-12-04 06:11

    Delete the .android folder from your Documents&settings\User\ on XP and \User\ on Win7. Recreate the AVD again and create a new project.

    0 讨论(0)
  • 2020-12-04 06:12

    Go to projects menu, click on clean menu item.

    After that close the eclipse and reopen and try compiling..

    It is software glitch you find some times.

    0 讨论(0)
  • 2020-12-04 06:13

    Well, in my case some libraries were addressed twice in the:

    Project >> Properties >> Java Build Path >> Libraries

    I just had to remove the duplicate and it worked fine without any cleanings or refreshing.

    0 讨论(0)
  • 2020-12-04 06:15

    If none of the above solution work, you should check the READ ONLY property of the Project folder, if it is Read-Only, the compiler will not be able to overwrite the resources, R.java and other dex APK etc files and hence this will occur.. This happened to me and I fixed after a long struggle.. Happy Programming.

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