'Gradle - "enforceUniquePackageName" deprecated with version 3.0.0+?
android {
enforceUniquePackageName = false
}
"enforceUniquePackageName" works with the gradle version:
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
}
However, if I change the gradle version to 3.0.0
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha9'
}
I get:
Could not set unknown property 'enforceUniquePackageName' for object of type com.android.build.gradle.AppExtension. Open File
If 'enforceUniquePackageName' property is deprecated, then what would be the alternative option?
Solution 1:[1]
This was renamed in AGP 3.4: https://developer.android.com/studio/releases/gradle-plugin#agp-7-1-stable-known-issues to uniquePackageNames
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | kenyee |