Answer the question
In order to leave comments, you need to log in
Why does a signed apk crash on startup if you use fb sdk?
When adding facebook sdk, the release version of apk for some reason falls, here is a report from firebase
> Exception java.lang.ExceptionInInitializerError:
com.facebook.internal.ac.b ()
com.facebook.internal.ac.a ()
com.facebook. internal.ad.run()
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
java.lang.Thread.run(Thread .java:841)
> Caused by java.lang.NullPointerException:
java.lang.Enum$1.create (Enum.java:43)
java.lang.Enum$1.create (Enum.java:35)
libcore.util.BasicLruCache. get(BasicLruCache.java:54)
java.lang.Enum.getSharedConstants(Enum.java:209)
java.util.EnumSet.noneOf (EnumSet.java:48)
java.util.EnumSet.allOf (EnumSet.java:66)
com.facebook.internal.aw. ()
com.facebook.internal.ac.b ()
com.facebook.internal.ac.a ()
com.facebook.internal.ad.run ()
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112 )
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
java.lang.Thread.run (Thread.java:841)
project level gradle in buildscript added mavenCentral
buildscript {
repositories {
jcenter()
google()
mavenCentral()
...
at the application level
dependencies {
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation 'com.google.firebase:firebase-crash:11.8.0'
implementation 'com.google.firebase:firebase-database:11.8. 0'
implementation 'com.android.support:multidex:1.0.3'
}
in the manifest inserted
uses-permission android:name="android.permission.INTERNET" />
and
application ...>
...
meta-data android: name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
/application>
there is nothing else related to fb except string/facebook_app_id
what could be the problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question