Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error #1359

Open
Zygon opened this issue Oct 24, 2017 · 0 comments
Open

Compile Error #1359

Zygon opened this issue Oct 24, 2017 · 0 comments

Comments

@Zygon
Copy link

Zygon commented Oct 24, 2017

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant