Run Android platform error with "cordova-plugin-facebook4"

Yes this worked for me too - thanks!

If I may, downgrading is not a solution, it’s a workaround :wink:

Keep an eye on it

1 Like

When you said that a lot of downloads were made when you build you project, by any chance do you have installed the plugin cordova-android-support-gradle-release? I was reading about a similar problem reported with version 1.9.1 of the facebook4 plugin and someone suggests to install the gradle-release plugin:

1 Like

No I didn’t (just double checked and searched all references of cordova-android-support-gradle-release, just find some in a README of another plugin, nothing more)

Just in case my Ionic Info. Also I have the last version of Android Studio 3.0 installed

Also note, I still have cordova-plugin-compat in my references (it look like some of the unexpected download mentioned above contains the name compat)

cli packages: ()

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0 
Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

@ionic/app-scripts : 3.1.4
Cordova Platforms  : android 6.4.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2


Android SDK Tools : 26.1.1
ios-deploy        : 1.9.2 
ios-sim           : 5.0.13 
Node              : v8.8.1
npm               : 5.5.1 
OS                : macOS Sierra
Xcode             : Xcode 9.1 Build version 9B55 

Environment Variables:

ANDROID_HOME : /Users/me/Library/Android/sdk


backend : pro

Gracias… funciono correctamente

thanks it worked for me tooo

You can get it working by changing following things without rolling back to previous version (ionic and cordova users only)

<framework src=""/>
<framework src=""/>
in plugin.xml of plugin located in /plugins/cordova-plugin-facebook4

and overwrite
compile ""
compile ""
both in /platforms/android/build.gradle and /platforms/android/ in your cordova or ionic project.


I’ve tried this and it worked beautifully, thank you!

Hello,Its solved my problem , Thanks, but in facebook login, i am now getting this error

Error in Error callbackId: FacebookConnectPlugin20XXXX30

Can you please help me on this ?

Hi, It seems like you are getting this error for iOS, right? Please share complete details or steps you took. It will be helpful if you can explain the case.

No, its android. Earlier i got error at time of build for facebook. i solved it by your solution and android build successfully.

But when i check facebook login feature, it gives me error which i mention.

Please check if have provided Wrong App ID, secret key (if used), key hashs or android project details while installing FB plugin and in FB developer account.

Hi, thank you very. It work for me on two system

It worked beautifully.

Yessss! This saved my life :slight_smile:

Open your poject with android studio and check the dependancies.

I tried them one at a time and adding latest android to the platforms worked for me! Thanks for the answer :slight_smile:

I worked correctly with:

Project > platforms > android >


ionic cordova build android

I hope this helps someone (Y)

1 Like

worked for me as well .