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)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Stack trace

    • 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) 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.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(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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.