androidintellij-ideaubuntu-12.04

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


I am new to Android programming; I am using Intellij IDEA. When I compile my hello-world program, I get this error "Android Source Generator: [project] AndroidManifest.xml file not found"

Of course it is not in my root file. When I make any new project, I have the same problem.

I found this question: AndroidManifest.xml file not found, but it didn't help. How do I fix this?


Solution

  • 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)