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

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

    Recently I came across this error. I was really in a corner with no help, then I figured it out. This error can occur for the following reasons:

    • An error in the project code
    • Improper linking of external library files to the project
    • Most important: if your debug.keystore file is expired.

    The first 2 cases are easily identifiable but the third one is like searching a black box in a dark room.

    So in addition to Project -> Clean, remove your debug.keystore file also.

    I am using Mac + Eclipse so to remove, I wrote the command rm ~/.android/.debug.keystore in a terminal.

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

    Is there a way to ignore existing errors in project. Something similar what eclipse allows in case of java projects.

    In my case the errors exist in jni directory. The errors are shown even though ndk-buid succeeds. So all i want to do is to ignore the errors reported by eclipse.

    If the errors are indeed errors then i should get unresolved symbols during ndk-build.

    I have ensured standard android includes are there in include path.

    Also my project is of type android/c/c++.

    I have two builders associated with the project 1. statndard android builder 2. custom ndk builder that ive explicitly created.

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