简体   繁体   中英

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.

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

That path may need to be adjusted slightly.

Reference : AndroidManifest.xml file not found

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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