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
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>
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
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.
you must open Project Structure modified something.
example: Project Structure > Facets ,you can see this is:
delete ".idea", like this
ok, IDE there find AndroidManifest.xml
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.
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.