Android Studio报错 Error: A library uses the same package as this project:

来源:互联网 发布:淘宝试用卖家不发货 编辑:程序博客网 时间:2024/06/16 04:29

Error: A library uses the same package as this project: com.example.android You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0

You can add enforceUniquePackageName=false in the app modules build.gradle file under android:

android {    compileSdkVersion 23    buildToolsVersion "23.0.1"    enforceUniquePackageName = false    ...}

参考
http://stackoverflow.com/questions/28417283/android-studio-using-a-library-and-project-with-the-same-package-name

1 0
原创粉丝点击