2015-09-28 49 views
0

我不断收到我不断收到不止一个库包名[Android]产品

Error:Execution failed for task ':streamHdtv2: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 

错误。我检查了我的build.gradle几次,但我找不到任何重复的包Facebook的。

我的build.gradle:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 21 
    buildToolsVersion "21.1.2" 

    defaultConfig { 
     applicationId "com.example.flashlight" 
     minSdkVersion 15 
     targetSdkVersion 21 
    } 

    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
} 

dependencies { 
    compile project(':initActivity') 
    compile 'com.android.support:support-v4:22.2.0' 
    compile 'com.google.android.gms:play-services:+' 
    compile 'com.facebook.android:facebook-android-sdk:4.6.0' 
    compile project(':facebook') 
} 

回答

0
compile 'com.facebook.android:facebook-android-sdk:4.6.0' 
compile project(':facebook') 

注释出任何上述线的一看。

0

使用此

Error:Execution failed for task ':streamHdtv2: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 
error. I have checked my build.gradle several times but I couldnt find any duplicate entry for package Facebook. 

My build.gradle: 

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 21 
    buildToolsVersion "21.1.2" 

    defaultConfig { 
     applicationId "com.example.flashlight" 
     minSdkVersion 15 
     targetSdkVersion 21 
    } 

    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
} 

dependencies { 
    compile project(':initActivity') 
    compile 'com.android.support:support-v4:22.2.0' 
    compile 'com.google.android.gms:play-services:+' 
    compile 'com.facebook.android:facebook-android-sdk:4.6.0' 
} 
相关问题