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

前端 未结 13 795
旧时难觅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:31

    Go to the directory where you have installed Android SDK. There, go to tools directory. Note down the path of tools directory.

    Open command prompt/terminal, and cd to tools directory:

    cd <tools directory path>
    

    Run command:

    android update project -p <path to project directory> -n <name of project> -t android-15
    

    To create a new project:

    android create project -p <path to project directory> -n <name of project> -k <package name> -a <hello world activity name> -t <android version like: android-15>
    
    0 讨论(0)
  • 2021-02-03 18:31

    Go File,Project Structure or press Ctrl+Shift+Alt+S,

    Go Facets, Select your android project, in the structure there are configuration files, folders. Image of structure tab (before)

    Location of AndroidManifest file was like this: D:\Programming\Dart Flutter Projects\tip_calculator\AndroidManifest.xml

    Change the location like this. Image of strcuture tab (after)

    Changed it to here: D:\Programming\Dart Flutter Projects\tip_calculator\android\app\src\profile\AndroidManifest.xml

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

    I used to have the same problem with Intellij 13 EAP, OS-X Mavericks, and a maven multi module Android project, where it was compiling fine by command line, but failing to rebuild/make thru the IDE.

    Project Structure > Facets > select your Android project > 'Generated Sources' tab

    check "Run 'process-resources' Maven task before Make" option.

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

    you must open Project Structure modified something.

    example: Project Structure > Facets ,you can see this is: enter image description here

    delete ".idea", like this enter image description here

    ok, IDE there find AndroidManifest.xml

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

    When I checkout an android project use Android Studio, I see the same problem. I try to new an Android module in the project, then the problem solved.

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

    Open the Gradle Sync tab, check for any errors there. If there is a link to "Install Repository and sync project" click it to install the missing components.

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