简体   繁体   English

找不到androidmanifest.xml android studio

[英]androidmanifest.xml not found android studio

我已经将一个eclipse项目导入到android studio,该项目在eclipse上运行良好,但是当我尝试在android studion上运行它时,出现了错误

Error:Android Source Generator: [MySchoolApp1] AndroidManifest.xml file not found

In the android section of your build.gradle file, you can try adding sourceSets with the manifest.srcFile variable. 在build.gradle文件的android部分中,您可以尝试添加带有manifest.srcFile变量的sourceSets。

android {
  sourceSets {
      main {
          manifest.srcFile 'ToDoList/src/main/AndroidManifest.xml'
      }
  }
}

That path may need to be adjusted slightly. 该路径可能需要稍作调整。

Reference : AndroidManifest.xml file not found 参考: 找不到AndroidManifest.xml文件

https://developer.android.com/studio/intro/migrate.html https://developer.android.com/studio/intro/migrate.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM