view raw
Jaimin Modi Jaimin Modi - 7 months ago 54
Android Question

Getting more than one library with package name 'com.facebook'

I am doing Facebook Integration and got the following error :

Error:Execution failed for task ':app:processDebugResources'.
> Error: more than one library with package name 'com.facebook'
You can temporarily disable this error with`android.enforceUniquePackageName=false
However, this is temporary and will be enforced in 1.0`

You can check my build.gradle file is as follows,

apply plugin: ''
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.zaptech.latestfacebookintegration"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile ''
compile ''
compile project(':facebook')
compile ''

Whats the problem is ? Please let me know about it.


You have to remove

compile project(':facebook')

from build.gradle