可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):

问题:

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.

回答1:

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.

Hope it helps :)

回答2:

Just call (in any case) File -> Invalidate Caches and Restart....

回答3:

In my case:

settings.gradle file was empty. I added defualt code:

include ':app'

Then I clicked

Then project start works.

回答4:

What helped for me was:

delete .gradle/ folder

delete .idea/ folder

delete ****.idea*** file

reopen Android Studio

import from gradle as Android Studio then suggests

回答5:

Double check that under project structure / module / Manifest file it points to the correct manifest file in your code and not the one in generated sources.

This is true for both Android Studio and Intelli J. Sometime when you import project from existing sources it prefer the manifest file inside the generates sources directory.

回答6:

I ran into a similar problem. Looks like my .../src directory for whatever reason moved under my .../lib directory. I moved it out of the /lib directory. Now both /lib and /src are at the same level. After a couple of clean rebuilds and restarts of Android studio everything is back to normal. My emulator started up fine.

You might want to check your directory structure. Compare the directory structure with a working project. You might be able to see the difference.

回答7:

Moving my AndroidManifest.xml to PROJECT_NAME/src/main fixed the issue.

回答8:

I had the same errormessage and noticed I had 2 MYPROJECTNAME.iml files, but with a different casing of MYPROJECTNAME. I created this situation after checking out from SVN the project into a directory with the casing error.

Just throw away the IML file with the wrong casing, after saving the content of both and use the content that works

回答9:

I had this problem with a multi-module project when I renamed the app module. In my case to solve the problem I had to manually update the app module name in the project's settings.gradle file (Android Studio didn't update that value)

回答10:

Happened to me. Found that i had wrongly opened the parent folder of the actual project in Android Studio.

回答11:

In my case, it was my AndroidManifest.xml file, it was all messed up due to a new library that I added in my build.gradle.

So I took the AndroidManifest.xml from my latest commit on Git and I replaced it the current one, and also my settings.gradle was empty so I added include ':app'.

Hope it helps, and happy coding !

android studio 看不到 manifest,Android Studio: Android Manifest doesn't exist相关推荐

  1. android如何看百分比版本,【JAVA】Android百分比布局

    开发我人生第一个app的时候,我在想有没有这么一种布局能适应任何手机的分辨率,今天让我们一起来看看Android 百分比布局PercentRelativeLayout. 使用这种布局首先我们要在gra ...

  2. android studio 运行找不到类,android-studio – Android Studio找不到TestCase类

    我编写了一个简单的测试用例类,并将其放在 Android Studio的默认测试目录中:"src / androidTest".我创建了一个Android Tests构建配置,用于 ...

  3. google android win10 ios,Flutter入门安装 ,win10 Android studio 教程

    Flutter是谷歌的移动UI框架,可以快速在iOS和Android上构建高质量的原生用户界面. Flutter可以与现有的代码一起工作.在全世界,Flutter正在被越来越多的开发者和组织使用,并且 ...

  4. 学习Android从0开始之开发工具篇-Android studio详解

    版权声明:本文为博主原创文章,未经博主允许不得转载. Android studio详解 我们古人又云:工欲善其事,必先利其器. 1.android studio的背景 Android Studio 是 ...

  5. android 最新sdk版本,详解如何在Android studio中更新sdk版本和build-tools版本

    一.首先看下Android开发用到的sdk目录: build-tools 保存着一些Android平台相关通用工具,比如adb.和aapt.aidl.dx等文件. aapt即Android Asset ...

  6. android 阿里 插件,堪比阿里插件的Android Studio插件集合(IDE通用)(上)

    点击上方蓝字关注码个蛋 除阿里插件之外这些好用的插件你知道吗? 作者博客 http://www.jianshu.com/u/f408bdadacce 文章目录 生成java文件,xml布局和生成资源文 ...

  7. android 模拟器应用未安装,当我在Android Studio中运行它时,Android应用程序未安装在模拟器或设备上...

    我正在开发Android应用程序.在我的应用程序中,我正在测试在设备和模拟器上运行的应用程序.这是我的第三个Android应用程序开发.当我开发其他应用程序时,应用程序会自动安装在设备上或模拟器上的启 ...

  8. android studio 代码覆盖率,AndroidStudio中使用Jacoco统计Android应用程序代码覆盖率

    AndroidStudio中使用Jacoco统计Android应用程序代码覆盖率 AndroidStudio中使用Jacoco统计Android应用程序代码覆盖率 最近在做针对Android应用程序代 ...

  9. Studio Bot - 让 AI 帮我写 Android 代码

    Google I/O 2023 不出所料,今年的 I/O 大会只突出了一个关键词 "AI".Google 旗下的各类产品都成了其展示 AI 实力的舞台.连面向开发者的产品 Andr ...

  10. visual studio 2017 创建 android 本地共享库(.so) 并从 C# android 项目中调用

    Developing Xamarin Android Native Applications ★★★★★ ★★★★ ★★★ ★★ ★ February 23, 2015 by Ankit Asthan ...

最新文章

  1. 网络新高速:T比特网络技术实现成功测试
  2. AI:百度飞桨EasyDL多门视频课程,手把手教你如何定制高精度AI模型
  3. php 实现类,php 获取页面中指定内容的实现类
  4. OCP Java 自测
  5. python保存模型的路径怎么写_使用python在MongoDB中保存机器学习(ML)和深度学习(DL)模型...
  6. java httprequest选项_java 实现HttpRequest 发送http请求
  7. linux期中测试答案 版本号,Linux认证测试题含答案
  8. uva 1637 Double Patience
  9. Java后台开发一:环境搭建
  10. baguetteBox.js - 简单易用的 lightbox 插件
  11. 《惢客创业日记》2021.02.01(周一)饺子就酒
  12. 基于java的在线考试系统设计(含源文件)
  13. weblogic Unable to obtain lock on
  14. Ubuntu16安装docker
  15. 零基础如何学习Web安全渗透测试?推荐这份史上最详细的自学路线图!
  16. Undelete Plus 2.7 恢复误删除的文件
  17. Nz-tree 树结构取消父子之间强关联关系后,选中父级,子级仍然选中,但取消子级后父级不会取消选中
  18. 4G背包多卡聚合路由器评测报告,高视与新支点ICG
  19. Unity3D 从入门到放弃(四)----打飞碟
  20. 嵌入式安卓开发:使用Camera2获取相机

热门文章

  1. 知识图谱可视化vue.js + d3.js
  2. 新海诚没有参与制作的作品_新海诚作品天气之子作画更上一步 各种好玩的梗值得一观...
  3. Maven 自己下载依赖包安装到本地仓库
  4. 题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。
  5. 1758 生成交替二进制字符串的最少操作数
  6. 蜻蜓特派员 Windows XP SP3 纯净终结版
  7. Benchmark 第一篇 了解Benchmark
  8. 基于OpenCV的图像形状检测(含源码)
  9. Listener refused the connection with the following error: ORA-12519, TNS:no appr
  10. 移动端开发,苹果手机样式乱,iphon7不支持white-space属性,控制显示几行