Support Forum
Android App Crashing with Taboola and Proguard R8 Full mode enabled
Android app is crashing with the following logs as soon as we turn on R8 full mode
FATAL EXCEPTION: main
Process: com.toi.reader.activities, PID: 30528
java.lang.RuntimeException: Unable to get provider com.taboola.android.TBLContextProvider: java.lang.ClassCastException
at android.app.ActivityThread.installProvider(ActivityThread.java:8711)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:8190)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7832)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2621)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:328)
at android.app.ActivityThread.main(ActivityThread.java:9160)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
Caused by: java.lang.ClassCastException
at android.support.v4.media.a.a(SourceFile:1)
at com.taboola.android.global_components.network.handlers.TBLEventsManagerHandler.setHttpManager(SourceFile:18)
at com.taboola.android.global_components.network.TBLNetworkManager.(SourceFile:18)
at com.taboola.android.global_components.network.TBLNetworkManager.(SourceFile:1)
at com.taboola.android.n.internalGlobalInit(SourceFile:33)
at com.taboola.android.Taboola.internalGlobalInit(SourceFile:3)
at com.taboola.android.TBLContextProvider.onCreate(SourceFile:10)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2697)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2667)
at com.taboola.android.TBLContextProvider.attachInfo(SourceFile:34)
at android.app.ActivityThread.installProvider(ActivityThread.java:8706)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:8190)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7832)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2621)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:328)
at android.app.ActivityThread.main(ActivityThread.java:9160)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)