sromku / android-simple-facebook

[Deprecated] Simple Facebook SDK for Android
Other
879 stars 349 forks source link

Configuration Error After Upgrade Firebase Version #442

Closed budasuyasa closed 7 years ago

budasuyasa commented 7 years ago

Hello guys, i got this error after upgrade to firebase 9.4.0

java.lang.NoSuchMethodError: No static method getAPIVersion()Ljava/lang/String; in class Lcom/facebook/internal/ServerProtocol; or its super classes (declaration of 'com.facebook.internal.ServerProtocol'

This error triggered by SimpleFacebook.setConfiguration(configuration);

I hope you guys can help me.

kanch1609 commented 7 years ago

just remove Facebook android sdk library from module dependencies, as it is leading to duplicated dependencies

budasuyasa commented 7 years ago

Thank you. Solved now.

ArunkumarKAndanshetti commented 7 years ago

What problem I'm facing right now : please help me....... java.lang.NoSuchMethodError: No static method getAPIVersion()Ljava/lang/String; in class Lcom/facebook/internal/ServerProtocol; or its super classes (declaration of 'com.facebook.internal.ServerProtocol' appears in /data/data/files/instant-run/dex/slice-com.facebook.android-facebook-android-sdk-4.20.0_2df9bd60de02704e486702ea6f1502ee3426b9c4-classes.dex)

ArunkumarKAndanshetti commented 7 years ago

My dependency.... compile project(':library_pinnlistivew') compile 'com.android.support:multidex:1.0.0' compile 'com.google.android.gms:play-services:8.4.0' compile 'com.android.support:appcompat-v7:24.2.1' compile 'com.soundcloud.android:android-crop:1.0.1@aar' compile 'de.hdodenhof:circleimageview:2.0.0' compile 'com.facebook.android:facebook-android-sdk:4.20.0' compile 'com.sromku:simple-fb:4.1.1' compile files('libs/android-query.0.26.7.jar') compile files('libs/apache-mime4j-core-0.7.2.jar') compile files('libs/httpclient-4.3.5.jar') compile files('libs/httpcore-4.3.2.jar') compile files('libs/httpmime-4.3.5.jar') compile files('libs/splunk-mint-4.0.8.jar') compile files('libs/gcm.jar')

Sir please help me....

ArunkumarKAndanshetti commented 7 years ago

project gradle : classpath 'com.android.tools.build:gradle:2.1.3'