1. Explore
  2. »
  3. Android
  4. »
  5. android.os

android.os errorsAndroid

Top patterns

  1. Tried to access to a resource without permission

    Request the required permission, before you start to use the resource:

    https://developer.android.com/training/permissions/requesting

  2. Executed network call on the main thread

    You must execute network calls on a background thread and not on the main thread.

    Read more: https://developer.android.com/training/articles/perf-anr

  3. Communication between threads is handled incorrectly
    No solution
Error patternsClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Tried to access to a resource without permission

java.lang.SecurityException
android.os.Parcel.readException
1349Web pages
1Solution
SecurityExceptionParcel.readException1349

Executed network call on the main thread

android.os.NetworkOnMainThreadException
android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork
1070Web pages
1Solution
NetworkOnMainThreadExceptionStrictMode$AndroidBlockGuardPolicy.onNetwork1070

Communication between threads is handled incorrectly

java.lang.RuntimeException
android.os.Handler.<init>
387Web pages
RuntimeExceptionHandler.<init>387

Handler.<init>() has thrown a RuntimeException

java.lang.RuntimeException
1 frames hidden
android.os.Handler.<init>
260Web pages
RuntimeExceptionHandler.<init>260

Handler.enqueueMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.os.Handler.enqueueMessage
160Web pages
IllegalStateExceptionHandler.enqueueMessage160

Handler.sendMessageAtTime() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
android.os.Handler.sendMessageAtTime
155Web pages
IllegalStateExceptionHandler.sendMessageAtTime155

BinderProxy.sendDeathNotice() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
android.os.BinderProxy.sendDeathNotice
150Web pages
IllegalArgumentExceptionBinderProxy.sendDeathNotice150

Handler.sendMessageDelayed() has thrown an IllegalStateException

java.lang.IllegalStateException
3 frames hidden
android.os.Handler.sendMessageDelayed
149Web pages
IllegalStateExceptionHandler.sendMessageDelayed149

If your targetSdkVersion is 24 or higher, you can not use file: Uri values in Intents

android.os.FileUriExposedException
android.os.StrictMode.onFileUriExposed
140Web pages
FileUriExposedExceptionStrictMode.onFileUriExposed140

Parcel.readException() has thrown an IllegalStateException

java.lang.IllegalStateException
android.os.Parcel.readException
116Web pages
IllegalStateExceptionParcel.readException116

You must do fileSystem operations on a separate thread

android.os.StrictMode$StrictModeDiskReadViolation
android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk
106Web pages
StrictMode$StrictModeDiskReadViolationStrictMode$AndroidBlockGuardPolicy.onReadFromDisk106

Binder.execTransact() has thrown a NullPointerException

java.lang.NullPointerException
2 frames hidden
android.os.Binder.execTransact
88Web pages
NullPointerExceptionBinder.execTransact88

Parcel.readException() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.os.Parcel.readException
85Web pages
IllegalStateExceptionParcel.readException85

BinderProxy.transact() has thrown a SecurityException

java.lang.SecurityException
android.os.BinderProxy.transact
84Web pages
SecurityExceptionBinderProxy.transact84

ServiceManager.addService() has thrown a SecurityException

java.lang.SecurityException
2 frames hidden
android.os.ServiceManager.addService
83Web pages
SecurityExceptionServiceManager.addService83

AsyncTask.finish() has thrown a NullPointerException

java.lang.NullPointerException
4 frames hidden
android.os.AsyncTask.finish
82Web pages
NullPointerExceptionAsyncTask.finish82

HandlerThread.run() has thrown a NullPointerException

java.lang.NullPointerException
6 frames hidden
android.os.HandlerThread.run
81Web pages
NullPointerExceptionHandlerThread.run81

MessageQueue.enqueueMessage() has thrown a RuntimeException

java.lang.RuntimeException
android.os.MessageQueue.enqueueMessage
78Web pages
RuntimeExceptionMessageQueue.enqueueMessage78

BinderProxy.transact() has thrown a TransactionTooLargeException

android.os.TransactionTooLargeException
android.os.BinderProxy.transact
76Web pages
TransactionTooLargeExceptionBinderProxy.transact76

Parcel.readValue() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Parcel.readValue
74Web pages
RuntimeExceptionParcel.readValue74

Handler.handleCallback() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
android.os.Handler.handleCallback
65Web pages
IllegalArgumentExceptionHandler.handleCallback65

Parcel.writeValue() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Parcel.writeValue
60Web pages
RuntimeExceptionParcel.writeValue60

Handler.post() has thrown an IllegalStateException

java.lang.IllegalStateException
4 frames hidden
android.os.Handler.post
58Web pages
IllegalStateExceptionHandler.post58

Binder.execTransact() has thrown a SecurityException

java.lang.SecurityException
5 frames hidden
android.os.Binder.execTransact
56Web pages
SecurityExceptionBinder.execTransact56

Handler.sendMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
4 frames hidden
android.os.Handler.sendMessage
55Web pages
1Solution
IllegalStateExceptionHandler.sendMessage55

AsyncTask.executeOnExecutor() has thrown a RejectedExecutionException

java.util.concurrent.RejectedExecutionException
3 frames hidden
android.os.AsyncTask.executeOnExecutor
47Web pages
RejectedExecutionExceptionAsyncTask.executeOnExecutor47

Binder.execTransact() has thrown a SecurityException

java.lang.SecurityException
4 frames hidden
android.os.Binder.execTransact
46Web pages
SecurityExceptionBinder.execTransact46

Parcel.readParcelable() has thrown a BadParcelableException

android.os.BadParcelableException
1 frames hidden
android.os.Parcel.readParcelable
45Web pages
BadParcelableExceptionParcel.readParcelable45

HandlerThread.run() has thrown a SnapshotException

org.eclipse.mat.SnapshotException
10 frames hidden
android.os.HandlerThread.run
44Web pages
SnapshotExceptionHandlerThread.run44

AsyncTask.finish() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
14 frames hidden
android.os.AsyncTask.finish
42Web pages
ArrayIndexOutOfBoundsExceptionAsyncTask.finish42

Handler.handleCallback() has thrown an IllegalStateException

java.lang.IllegalStateException
3 frames hidden
android.os.Handler.handleCallback
41Web pages
IllegalStateExceptionHandler.handleCallback41

Handler.dispatchMessage() has thrown a RuntimeException

java.lang.RuntimeException
4 frames hidden
android.os.Handler.dispatchMessage
41Web pages
RuntimeExceptionHandler.dispatchMessage41

AsyncTask.executeOnExecutor() has thrown an IllegalStateException

java.lang.IllegalStateException
android.os.AsyncTask.executeOnExecutor
41Web pages
IllegalStateExceptionAsyncTask.executeOnExecutor41

Parcel.readParcelable() has thrown a BadParcelableException

android.os.BadParcelableException
android.os.Parcel.readParcelable
40Web pages
BadParcelableExceptionParcel.readParcelable40

Parcel.writeList() has thrown a RuntimeException

java.lang.RuntimeException
1 frames hidden
android.os.Parcel.writeList
40Web pages
RuntimeExceptionParcel.writeList40

Handler.sendMessageDelayed() has thrown a RuntimeException

java.lang.RuntimeException
2 frames hidden
android.os.Handler.sendMessageDelayed
39Web pages
RuntimeExceptionHandler.sendMessageDelayed39

Handler.dispatchMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
4 frames hidden
android.os.Handler.dispatchMessage
39Web pages
IllegalStateExceptionHandler.dispatchMessage39

AsyncTask.execute() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.os.AsyncTask.execute
38Web pages
IllegalStateExceptionAsyncTask.execute38

Looper.loop() has thrown an IllegalStateException

java.lang.IllegalStateException
5 frames hidden
android.os.Looper.loop
36Web pages
IllegalStateExceptionLooper.loop36

HandlerThread.run() has thrown a ServiceConnectionLeaked

android.app.ServiceConnectionLeaked
16 frames hidden
android.os.HandlerThread.run
35Web pages
ServiceConnectionLeakedHandlerThread.run35

Parcel.writeValue() has thrown a RuntimeException

java.lang.RuntimeException
2 frames hidden
android.os.Parcel.writeValue
34Web pages
RuntimeExceptionParcel.writeValue34

Handler.sendEmptyMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
5 frames hidden
android.os.Handler.sendEmptyMessage
34Web pages
IllegalStateExceptionHandler.sendEmptyMessage34

StrictMode.setClassInstanceLimit() has thrown a StrictMode$InstanceCountViolation

android.os.StrictMode$InstanceCountViolation
android.os.StrictMode.setClassInstanceLimit
33Web pages
StrictMode$InstanceCountViolationStrictMode.setClassInstanceLimit33

Binder.execTransact() has thrown a SecurityException

java.lang.SecurityException
5 frames hidden
android.os.Binder.execTransact
33Web pages
SecurityExceptionBinder.execTransact33

ParcelFileDescriptor.<init>() has thrown a Throwable

java.lang.Throwable
1 frames hidden
android.os.ParcelFileDescriptor.<init>
33Web pages
ThrowableParcelFileDescriptor.<init>33

Handler.sendMessageDelayed() has thrown a RuntimeException

java.lang.RuntimeException
3 frames hidden
android.os.Handler.sendMessageDelayed
33Web pages
RuntimeExceptionHandler.sendMessageDelayed33

Parcel.readValue() has thrown a BadParcelableException

android.os.BadParcelableException
2 frames hidden
android.os.Parcel.readValue
32Web pages
BadParcelableExceptionParcel.readValue32

Bundle.getString() has thrown a ClassCastException

java.lang.ClassCastException
android.os.Bundle.getString
32Web pages
ClassCastExceptionBundle.getString32

Parcel.writeSerializable() has thrown a NotSerializableException

java.io.NotSerializableException
11 frames hidden
android.os.Parcel.writeSerializable
31Web pages
NotSerializableExceptionParcel.writeSerializable31

Parcel.openFileDescriptor() has thrown a FileNotFoundException

java.io.FileNotFoundException
android.os.Parcel.openFileDescriptor
31Web pages
FileNotFoundExceptionParcel.openFileDescriptor31
Nothing to list here.
Nothing to list here.
Nothing to list here.