Error: A library uses the same package as this project: You can temporarily disable this error with =false However, this is temporary and will be enforced in 1.0
You can add enforceUniquePackageName=false in the app modules file under android:
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
enforceUniquePackageName = false
...
}
参考
/questions/28417283/android-studio-using-a-library-and-project-with-the-same-package-name