Android Studio:Android 清单不存在或根标记不正确 [英] Android Studio: Android Manifest doesn't exists or has incorrect root tag

查看:51
本文介绍了Android Studio:Android 清单不存在或根标记不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio (AS) 上遇到了这个错误:

我是如何得到的:

我从头开始创建了一个 AS 项目,一切都很好.然后出现了一个弹出窗口,并且(如果我没记错的话)说的是:Android Framework detected".我按下是",项目/模块发生了一些变化.之后我得到了上述错误

就我而言,问题与 Gradle 无关.它与 IntelliJ/Android Studio 配置有关,尤其是 .iml 文件.在阅读了这篇内容丰富的帖子后,我意识到 的评论.如果 Sync project with Gradle files 它不可见,您必须打开 Gradle 面板并单击工具栏顶部的同步图标.

I got this error on Android Studio (AS):

How I got it:

I created an AS Project from scratch and everything was fine. Then a popup showed up, and (if I recall correctly) was saying something like: "Android Framework detected". I pressed "Yes' and some changes happened to the project/module. And after that I got the above error

Edit:

In my case the problem was not Gradle related. It had to do with IntelliJ/Android Studio configuration, an .iml file in particular. I realized that after reading this informative post here.

解决方案

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

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.

这篇关于Android Studio:Android 清单不存在或根标记不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆