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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Razon
, 1 year ago
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
via sourcecodebig.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{nezibo.com.dreamception/nezibo.com.dreamception.activity.MainActivity}: java.lang.NullPointerException: Attempt to get length of null array at android.app.ActivityThread.performLaunchActivity
via Stack Overflow by Ammar Samater
, 2 years ago
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java)
via Stack Overflow by Destry
, 1 year ago
) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java)
via Stack Overflow by Manik Gandotra
, 1 year ago
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
via Stack Overflow by Strelok
, 1 year ago
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
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.