Open melihcaliskan opened 4 years ago
Pls, somebody can help us with this. I'm having the same problem with react-native-fbsdk and expo-facebook. :'(
Hello! I fixed it changing gradle version and AndroidManifest. Works for both libraries react-native-fbsdk and expo-facebook.
These were my changes:
/android/gradle/wrapper/gradle-wrapper.properties
distributionUrl: ...4.1.1... to ...5.1.1...
/android/build.gradle
classpath 'com.android.tools.build:gradle:3.3.0'
to classpath 'com.android.tools.build:gradle:3.4.0'
and
task wrapper(type: Wrapper){...}
to wrapper {...}
/android/app/src/main/AndroidManifest.xml
<application>
...
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
</application>
Additional information: My project was ejected from expo project with expo-facebook for login. The gradle version at that moment was 4.x. I try with react-native-fbsdk library and didn't work on android too. So I try use react-native-fbsdk on new project and the big difference was gradle version!
🐛 Bug Report
Hello,
I installed the 1.1.1 version of react-native-fbsdk and did configuration of it. (Added lines to AndroidManifest.xml and strings.xml files)
But the application crashes when I press the login button and start typing.
Here is a logcat output:
Can you help me to solve this issue, thank you.
Environment