Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2k forks source link

Compile Error #1359

Open Zygon opened 7 years ago

Zygon commented 7 years ago

Hi,

After the installation of this plugin i'm facing the next errors:

  1. Error:(59, 20) error: reference to NativeAppCallAttachmentStore is ambiguous both class com.facebook.internal.NativeAppCallAttachmentStore in com.facebook.internal and class com.facebook.NativeAppCallAttachmentStore in com.facebook match

I Already Download the Facebook SDK My Gradle File: ` buildscript { repositories { mavenCentral() }

if (gradle.gradleVersion >= "2.2") {
    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0+'
    }
} else if (gradle.gradleVersion >= "2.1") {
    dependencies {
        classpath 'com.android.tools.build:gradle:0.14.0+'
    }
} else {
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.0+'
    }
}

}

apply plugin: 'com.android.library'

dependencies { compile fileTree(dir: 'libs', include: '*.jar') debugCompile project(path: ":CordovaLib", configuration: "debug") releaseCompile project(path: ":CordovaLib", configuration: "release") compile 'com.facebook.android:facebook-android-sdk:4.4.0' }

android { compileSdkVersion cdvCompileSdkVersion buildToolsVersion cdvBuildToolsVersion publishNonDefault true

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_6
    targetCompatibility JavaVersion.VERSION_1_6
}

sourceSets {
    main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        resources.srcDirs = ['src']
        aidl.srcDirs = ['src']
        renderscript.srcDirs = ['src']
        res.srcDirs = ['res']
        assets.srcDirs = ['assets']
        jniLibs.srcDirs = ['libs']
    }
}

}

if (file('build-extras.gradle').exists()) { apply from: 'build-extras.gradle' }`

i'm using Android Studio 2.3.3 my android manifest confing:
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />

My Android Struture project: CordovaLib FacebookLib android |__ phonegap-facebook-plugin (Seem's that is a empty folder) GradleScripts 3 build.gradle (Cordova, Android & Facebook)