ERROR: Android Source Generator: [project] AndroidManifest.xml file not found

前端 未结 13 827
旧时难觅i
旧时难觅i 2021-02-03 17:57

I am a newbie to android , using intellij idea. when I want to compile my hello-world ( the first step ;) ) I faced with this error \"Android Source Generator: [project] Android

相关标签:
13条回答
  • 2021-02-03 18:15

    I know the problem in IDEA because you create a new project with Java configuration (not android, but with android sdk dependency)

    File > New Project > Java (Java Module) > Project SDK Android 4.X
    

    Here is the solution :

    File > New Project > Android (Application Module)
    
    0 讨论(0)
  • 2021-02-03 18:15

    I solved this problem this way: I created another project using the default configuration and without closing this new project opened the old project with the Android Source Generator: [project] AndroidManifest.xml file not found ERROR.

    0 讨论(0)
  • 2021-02-03 18:22

    Goto File -> New Project -> Android Project->continue and hit Finish.

    Now go to File -> Import existing file system

    0 讨论(0)
  • 2021-02-03 18:24

    If you are using Maven, backup the project and close it. Open IntelliJ and select Open..., choose the pom.xml file and then select yes to open this project. Because there is already a project a popup should appear, choose 'Delete Existing Project and Import'.

    Note: I'm using IntelliJ Community Edition version 13

    I believe this question is a duplicate of this question: AndroidManifest.xml file not found

    0 讨论(0)
  • 2021-02-03 18:24

    Simply, Move your project folder to default project directory

    /home/USER/AndroidStudioProjects/

    This solves my issue . Hope This helps!!!

    0 讨论(0)
  • 2021-02-03 18:27

    There may be more than one answer to this. Check that your Android project is not under another directory of the same name. Android Studio is easily confused by this.

    For example, change: /Development/MyProject/MyProject/app/...

    to this structure: /Development/MyProject/app/...

    When I changed this in my own project, it went from refusing to build to doing an auto-build on opening the project. Hope this is useful.

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