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

今天在导入一个项目的时候,as报错 Error: A library uses the same package as this project

 

经过百度Google 发现解决办法:在modules的build.gradle下添加这行代码,如果不成功,试试在app 下添加。

1 android {
2     compileSdkVersion 23
3     buildToolsVersion "23.0.1"
4     enforceUniquePackageName = false   
5     
6 }

 

点赞