I\'m using git, and creating lots of git branches for new features on a project I\'m working on. Every once in a while, I\'ll create a new branch off master as usual (let\'s
This happened to me today.. I clicked "Sync Project with Gradle Files" and all went fine.
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 structure tab (after)
Changed it to here:
D:\Programming\Dart Flutter Projects\tip_calculator\android\app\src\profile\AndroidManifest.xml
I just had this problem while trying to build the swagger code gen project. For whatever reason IntelliJ thought I should have an Android facet. Removing this facet allowed the entire project to build.
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)
It happens to me when I don't have .iml file to open the project. It's very easy to fix, you just need to close the project and reopen it taking care of select build.gradle file before click open.
I hope it helps somebody.
When I get "AndroidManifest.xml file not found" error I clean and then refresh the project and these steps seem to fix the problem.