Cannot read packageName from AndroidManifest.xml

前端 未结 14 1171
情歌与酒
情歌与酒 2020-12-15 19:52

I have errors in my android manifest file:

Error:Cannot read packageName from C:\\Users\\brandon\\AndroidStudioProjects\\MineDodge2\\app\\src\\main\\AndroidM         


        
14条回答
  •  心在旅途
    2020-12-15 20:18

    I had this in a multi-subproject project, caused by the subproject not matching the configure( clause in the top-level build.gradle.

    Specifically I had

    configure(subprojects.findAll { it.name.startsWith("pachymeninx") }) {
    

    which did not match my new subproject called pachymen. But the Gradle build process issued no warning (that I saw) and instead gave "Cannot read packageName from AndroidManifest.xml" error for the pachymen subproject.

提交回复
热议问题