Paschalis Paschalis - 6 months ago 90
Android Question

Android Studio: Android Manifest doesn't exists or has incorrect root tag

I get this error on Android Studio:
enter image description here

Project was created in Android Studio from scratch, and it was working fine.
What change I made (if I recall correctly), was about a popup dialog, like "

Android Framework detected
". The Android logo appeared in that dialog, and by pressing "Yes", it did some changes to the configurations of the project/module.
And then the error occurred. How i can get it back working?

Edit:
The problem was not
Gradle
related. It was
IntelliJ
/
Android Studio
related. Something was wrong in a
.iml
file. I created a new project, and carefully merged my code with the new project.
But first, I read some staff about Gradle build system from here:

http://tools.android.com/tech-docs/new-build-system/user-guide

(Thats how i realized it wasn't Gradle related)

Answer

On Android Studio v0.8.2 clicking on Sync project with Gradle files button solved my problem.

Screenshot of Android Studio toolbar with "Sync project with Grandle files" button highlighted.

update

Thanks to the comment of jaumard. If the Sync project with Gradle files it's not visible you have to open the Gradle panel and click sync icon on top the toolbar.


Hope it helps :)