java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.StreetDirectory.android/com.StreetDirectory.android.StreetDirectoryIndex}: java.lang.IllegalStateException: System services not available to Activities before onCreate()

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 anddev.org by Unknown author, 1 year ago
Unable to instantiate activity ComponentInfo{com.StreetDirectory.android/com.StreetDirectory.android.StreetDirectoryIndex}: java.lang.IllegalStateException: System services not available to Activities before onCreate()
via Stack Overflow by plancys
, 2 years ago
Unable to start activity ComponentInfo{com.windmobile.rbt.android/com.windmobile.rbt.android.category.CategoryActivity}: java.lang.IllegalStateException: ViewPage r does not have adapter instance.
via Stack Overflow by Herry
, 2 years ago
Unable to instantiate activity ComponentInfo{com.android.drawline/com.android.drawline.SalesBarChart}: java.lang.ClassCastException: com.android.drawline.SalesBarChart
via Stack Overflow by DingleNutZ
, 2 years ago
Unable to instantiate activity ComponentInfo{com.dingle.ubat/com.dingle.ubat.UltraBrightAndroidTorchActivity}: java.lang.NullPointerException
via Stack Overflow by Hakon89
, 2 years ago
Unable to instantiate activity ComponentInfo{com.androstrategy/com.androstrategy.Game}: java.lang.NullPointerException
via Stack Overflow by theblitz
, 2 years ago
Unable to instantiate activity ComponentInfo{il.co.anykey.games.yaniv.pro/ui.YanivMultiPlayerClientActivity}: java.lang.InstantiationException: ui.YanivMultiPlayerClientActivity
java.lang.IllegalStateException: System services not available to Activities before onCreate()
at android.app.Activity.getSystemService(Activity.java:3468)
at android.app.Dialog.(Dialog.java:139)
at android.app.AlertDialog.(AlertDialog.java:63)
at android.app.ProgressDialog.(ProgressDialog.java:80)
at android.app.ProgressDialog.(ProgressDialog.java:76)
at android.app.ProgressDialog.show(ProgressDialog.java:101)
at android.app.ProgressDialog.show(ProgressDialog.java:90)
at com.StreetDirectory.android.StreetDirectoryIndex.(StreetDirectoryIndex.java:61)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1479)
at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
at android.app.ActivityThread.access$2200(ActivityThread.java:119)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4363)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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