Open yanismydj opened 10 years ago
I'm having the same issue :(
PhoneGap 3.4.0
I found a related issue here #436, but it still isn't working..
You both have to link your FacebookSDK android projects to your main project
Project > Properties > Android > Add > path/to/facebook/sdk
@yanismydj have you tried adding the Facebook SDK using Eclipse or following the additional steps for command line only building?
@aogilvie Can you please link to or give a summary on what those "additional steps for command line only building" are?
Edit: Nevermind, I thought you were talking about something in the Facebook or Android docs, but it's a README in this very project (https://github.com/Wizcorp/phonegap-facebook-plugin/tree/master/platforms/android#setup-without-eclipse-just-cli)
Hi, I executed the command to add libs:
android update project --subprojects --path "platforms/android" --target android-19 --library "CordovaLib" android update project --subprojects --path "platforms/android" --target android-19 --library "FacebookLib"
The steps inserted automatically into platforms/android/project.properties file.
Is unnecessary to execute: echo "android.library.reference.2=FacebookLib" >> platforms/android/project.properties
@yanismydj any news? Can I close this?
This error happens when we have done several changes in build.gradle file, these lines must be readded:
debugCompile project(path: "phonegap-facebook-plugin:FacebookLib", configuration: "debug") releaseCompile project(path: "phonegap-facebook-plugin:FacebookLib", configuration: "release")
After installing the phonegap-facebook-plugin, Android will fail on every build for me.
For a test, I ran the following:
At this point, running
cordova build android
will work correctly. However, after runningcordova -d plugin add /Users/ylhert/dev/phonegap-facebook-plugin --variable APP_ID="redacted" --variable APP_NAME="redactedalso"
, when I runcordova build android
I get the following error:It appears as though I do not have the com.facebook package. Is there another step I'm missing?