1

Crashlytics compile('com.crashlytics.sdk.android:crashlytics:2.9@aar') is integrated with the app, The crash is seen from application onCreate method and following stacktrace is obtained. No other similar error/explaination could be found on stackoverflow. Any suggestions are welcome.

Error:

Caused by: java.lang.ArrayStoreException: com.crashlytics.android.Crashlytics cannot be stored in an array of type io.fabric.sdk.android.Kit[] at com.sobersystems.mobile_managed.SoberSplash.onCreate(SoberSplash.java:39) at android.app.Activity.performCreate(Activity.java:6679) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)

Kush
  • 355
  • 2
  • 20
  • Can you please post your initialization code of Crashlytics ? – Chintan Soni May 15 '18 at 17:32
  • buildscript { ...... dependencies { classpath 'io.fabric.tools:gradle:1.+' } } dependencies { compile('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') { transitive = true; } | – Tarun Sharma May 15 '18 at 19:10
  • 1
    Initialisation Code means the code that has been written in your SoberSplash activity to initialise your Crashlytics. Particularly, at line number 39. – Chintan Soni May 16 '18 at 06:47
  • Possible duplicate of [Dealing with an ArrayStoreException](https://stackoverflow.com/questions/12369957/dealing-with-an-arraystoreexception) – Chintan Soni May 16 '18 at 06:49
  • Mike from Fabric here. As Chintan noted, having the init code from your application's subclassed onCreate where you add Fabric is needed. – Mike Bonnell May 16 '18 at 12:12

2 Answers2

0

May be you are having the Crashlytics.jar in your libs directory and compile Crashlytics in build.gradle. Remove any one, hope it will help.

Kushal
  • 795
  • 1
  • 5
  • 23
0

Perform a clean. You possibly changed build types and made a change to your gradle build file and got things out of whack.

Build-->Clean Project

ShellDude
  • 579
  • 6
  • 12