java.lang.RuntimeException

Can't create handler inside thread that has not called Looper.prepare()

Samebug tips1

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 web387

  • via GitHub by alhdo
    ,
  • Stack trace

    • java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.<init>(Handler.java:200) at android.os.Handler.<init>(Handler.java:114) at android.app.Dialog.<init>(Dialog.java:108) at android.app.Dialog.<init>(Dialog.java:148) at android.support.v7.app.AppCompatDialog.<init>(AppCompatDialog.java:43) at android.support.v7.app.AlertDialog.<init>(AlertDialog.java:95) at android.support.v7.app.AlertDialog$Builder.create(AlertDialog.java:927) at com.example.study.Splash.checking(Splash.java:66) at com.example.study.Splash$2.run(Splash.java:51)

    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

    mrokay97mrokay97
    5 times, last one
    dmitrydmitry
    Once,
    Hiren AmaliyarHiren Amaliyar
    27 times, last one
    winer222winer222
    288 times, last one
    filpgamefilpgame
    128 times, last one
    35 more bugmates