Gradle 14.4 Fails to Build - Gradle DSL method not found 'packageName()'

让人想犯罪 __ 提交于 2019-12-04 23:51:25

How can I resolve this issue, whilst retaining the ability to change the packageNames for my flavors?

Change them to applicationId:

productFlavors {
    flavor1 {
        applicationId "com.mypackagename.one"
    }
    flavor2 {
        applicationId "com.mypackagename.two"
    }
}

where do I go to find out about these changes?

At the moment, go to the documentation on the tools site.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!