java.lang.RuntimeException: Failed to instantiate AndroidPlatform class. Using ProGuard? See What ProGuard configuration do I need for Firebase on Android? and Caused by: java.lang.NoSuchMethodException: [class android.content.Context] I have tried to go This link suggested by android studio but did't get any pro-guard for firebase 2.4.0 The complete stack trace is as follows 07-14 21:10:43.577 17043-17043/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.totalmovie.razon30.movietest, PID: 17043 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.totalmovie.razon30.movietest/com.example.razon30.movietest.HomeActivity}: java.lang.RuntimeException: Failed to instantiate AndroidPlatform class. Using ProGuard? See What ProGuard configuration do I need for Firebase on Android? at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.RuntimeException: Failed to instantiate AndroidPlatform class. Using ProGuard? See What ProGuard configuration do I need for Firebase on Android? at com.c.a.d.g.a(Unknown Source) at com.c.a.h.a(Unknown Source) at com.example.razon30.movietest.HomeActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:6251) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java)

Stack Overflow | Razon | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Debug apk runs well but released apk showing unfortunately stopped

    Stack Overflow | 9 months ago | Razon
    java.lang.RuntimeException: Failed to instantiate AndroidPlatform class. Using ProGuard? See What ProGuard configuration do I need for Firebase on Android? and Caused by: java.lang.NoSuchMethodException: [class android.content.Context] I have tried to go This link suggested by android studio but did't get any pro-guard for firebase 2.4.0 The complete stack trace is as follows 07-14 21:10:43.577 17043-17043/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.totalmovie.razon30.movietest, PID: 17043 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.totalmovie.razon30.movietest/com.example.razon30.movietest.HomeActivity}: java.lang.RuntimeException: Failed to instantiate AndroidPlatform class. Using ProGuard? See What ProGuard configuration do I need for Firebase on Android? at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.RuntimeException: Failed to instantiate AndroidPlatform class. Using ProGuard? See What ProGuard configuration do I need for Firebase on Android? at com.c.a.d.g.a(Unknown Source) at com.c.a.h.a(Unknown Source) at com.example.razon30.movietest.HomeActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:6251) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java)

    Root Cause Analysis

    1. java.lang.NoSuchMethodException

      [class android.content.Context] at java.lang.Class.getConstructor(Class.java:528) at java.lang.Class.getConstructor(Class.java:492) at com.c.a.d.g.a(Unknown Source)

      at com.c.a.h.a()
    2. com.c.a
      h.a
      1. com.c.a.h.a(Unknown Source)
      1 frame
    3. com.example.razon30
      HomeActivity.onCreate
      1. com.example.razon30.movietest.HomeActivity.onCreate(Unknown Source)
      1 frame
    4. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6251)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
      4 frames