"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 changed the version of gradle 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 the "enforceUniquePackageName" property is deprecated, then what would be the alternative?

+7
android android-gradle gradle
source share

No one has answered this question yet.

See similar questions:

10
Android Studio using a library and a project with the same package name
2
Cannot import "CastVideos-android" into Andr Studio: failed to set unknown property "enforceUniquePackageName"

or similar:

1206
What is Gradle in Android Studio?
746
Error getting parent element for element: resource not found that matches the specified name after upgrading to AppCompat v23
474
Gradle DSL method not found: 'runProguard'
425
How to make gradle reload dependencies?
369
How to manually enable an external aar package using the new Gradle Android Build system
70
Gradle version 3.3 does not support Task () method on BuildActionExecuter
45
The android.dexOptions.incremental property is deprecated
one
How to solve this Gradle error?
one
error with gradient 2.2.1
0
Android Studio: mismatch between Gradle versions mentioned in Gradle file and File> Project Structure> Project

All Articles