美文网首页
No signature of method static or

No signature of method static or

作者: chenzhenlindx | 来源:发表于2018-03-06 10:51 被阅读217次
    Error:(35, 0) No signature of method: static org.gradle.api.java.archives.Manifest.srcFile() is applicable for argument types: (java.lang.String) values: [src/main/lib/AndroidManifest.xml]
    

    原始代码

        sourceSets {
            main {
                if (!isLibrary()) {
                    Manifest.srcFile 'src/main/AndroidManifest.xml'
                } else {
                    Manifest.srcFile 'src/main/lib/AndroidManifest.xml'
                }
            }
        }
    

    大写 maifest改成 小写,搞定

        sourceSets {
            main {
                if (!isLibrary()) {
                    manifest.srcFile 'src/main/AndroidManifest.xml'
                } else {
                    manifest.srcFile 'src/main/lib/AndroidManifest.xml'
                }
            }
        }
    

    相关文章

      网友评论

          本文标题:No signature of method static or

          本文链接:https://www.haomeiwen.com/subject/jislfftx.html