react-native-facebook-login icon indicating copy to clipboard operation
react-native-facebook-login copied to clipboard

No static method startActivity(Landroid/app/Activity;Landroid/content/Intent;Landroid/os/Bundle;)V in class Landroid/support/v4/app/ActivityCompat

Open MhtSuthar opened this issue 7 years ago • 5 comments

I am using your lib, its working fine in iphone but not in android. I have costume button for facebook login and i am facing this issue in android. lets brief about issue:

If i have facebook app in android phone than not an issue if i am not having a facebook app than it will not open browser of facebook login, app directly crashed.

In android Build.gradle file i am using

compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 22
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}

compile 'com.android.support:appcompat-v7:25.0.2' this one is app compact library.

I dont know what happen exactly. Please help me out.

MhtSuthar avatar Jun 15 '17 07:06 MhtSuthar

Hi, MhtSuthar I experienced same thing thing. I think they might made some changes in new version 1.5. I downgraded react-native-facebook-login version to 1.4 and it solved the issue.

mrlaunch avatar Jun 17 '17 23:06 mrlaunch

Have same problem. Downgrading to 1.4 solved the issue

drakmail avatar Jun 21 '17 20:06 drakmail

Any other solution rather than downgrading to 1.4?

prjmax avatar Aug 03 '17 03:08 prjmax

OK finally by adding

compile 'com.facebook.android:facebook-android-sdk:4.20.0'

it works!

prjmax avatar Aug 03 '17 03:08 prjmax

This is an issue specifically when the phone doesn't have the facebook app installed. I've had it working fine with the app, then removed the facebook app and this happened. @prjmax has the right answer. I'm updating the Android docs to reflect this. Please merge, @magus ! =)

tmaly1980 avatar Aug 03 '17 04:08 tmaly1980