error: androidmanifest.xml file missing --> What am i missing?

前端 未结 6 1687
深忆病人
深忆病人 2020-12-14 02:07

Hi I am completely new to Android programming and the question I am asking might be something very simple, but I do not have any idea about how to make it work, so kindly be

相关标签:
6条回答
  • 2020-12-14 02:47

    - First of all please make sure that you have properly synced Eclipse with Android.

    - Have you added the tools, and platform-tools folder Path in your System Environment Path.

    - I hope you are creating an Android Project and not Java. See the Project folder in the Project explorer in Eclipse will be having a A sign for Android and J for Java.

    0 讨论(0)
  • 2020-12-14 02:53

    This is build issue.

    Go to Menu in eclipse, Project>clean then Project>Build All

    Clean instruction will remove all build configuration and fix all build issues.

    0 讨论(0)
  • 2020-12-14 02:55

    Project --> Clean worked for me

    0 讨论(0)
  • 2020-12-14 03:02

    what worked for me:

    • Uncheck Project>Build Automatically
    • Close project
    • Open Project
    • Clean project
    • manually Project> Build project then it worked.

    Eventually i checked back Build Automatically.

    I do not know what`s with "Build Automatically", It gives me some problem also when i export my Google play games (especially when i used external libray, like AndEngine for instance).

    To fix it, i do a similar thing to fix the problem (uncheck it, clean, build manually)

    0 讨论(0)
  • 2020-12-14 03:08

    I had a similar problem. But is was caused by crashing of eclipse. After that I was 2 swap files of AndroidManifest.xml and the same error: "AndroidManifest.xml file missing!".

    So, I removed swap files (.swo, .swp)

    :-)

    0 讨论(0)
  • 2020-12-14 03:10

    Just build your project or Clean it as "Clayton" mentioned below.

    Project > Build All

    Project > Clean

    This I believe is because you do not have R.java file in your gen folder. Building your project will generate the R.java file in your gen folder and the errors should go away.

    This happens because you're referring to your layout file using the following code

    setContentView(R.layout.activity_main); 
    

    The reference to R.layout.activity_main is declared in R.java file which needs to be generated by building your project.

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