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


Solutions on the web402

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

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

Solution icon of github
via GitHub by danfoster
, 1 year ago
Can't create handler inside thread that has not called Looper.prepare()

Solution icon of github
via GitHub by ntanduc2288
, 1 year ago
Can't create handler inside thread that has not called Looper.prepare()

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

Solution icon of github
via GitHub by sarahlensing
, 11 months ago
Can't create handler inside thread that has not called Looper.prepare()

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

Solution icon of github
via GitHub by c-h-
, 1 month ago
Can't create handler inside thread that has not called Looper.prepare()

Solution icon of github
via GitHub by WooYu
, 5 months ago
Can't create handler inside thread that has not called Looper.prepare()

Solution icon of github
via GitHub by audax
, 9 months ago
Can't create handler inside thread that has not called Looper.prepare()

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 com.permissioneverywhere.PermissionRequest.enqueue(PermissionRequest.java:61)
	at com.shygunsys.pocketcyber.locationservice.TLocationManager.updateLocation(TLocationManager.java:153)
	at com.shygunsys.pocketcyber.locationservice.TLocationManager.reset(TLocationManager.java:348)
	at com.shygunsys.pocketcyber.syncService.ShygunLocationSyncServicePost.DoSync(ShygunLocationSyncServicePost.java:88)
	at com.shygunsys.pocketcyber.syncService.TShygunSyncService.doInBackground(TShygunSyncService.java:139)
	at com.shygunsys.pocketcyber.syncService.TShygunSyncService.doInBackground(TShygunSyncService.java:33)
	at android.os.AsyncTask$2.call(AsyncTask.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)

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

Once, 4 months ago
131 times, 1 year ago
13 times, 1 year ago
5 times, 1 year ago
2 times, 1 year ago
36 more bugmates