Android errors

The mobile operating system of Google

https://developer.android.com/
Solution coverage:
Summary coverage:

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

DescriptionException TypeEntry MethodWeb pages

Tried to access to a resource without permission

java.lang.SecurityException
android.os.Parcel.readException
1314Web pages
1Solution
SecurityExceptionParcel.readException1314

Executed network call on the main thread

android.os.NetworkOnMainThreadException
android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork
1065Web pages
1Solution
NetworkOnMainThreadExceptionStrictMode$AndroidBlockGuardPolicy.onNetwork1065

Communication between threads is handled incorrectly

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

You are communicating incorrectly between threads

java.lang.IllegalStateException
android.os.MessageQueue.enqueueMessage
157Web pages
IllegalStateExceptionMessageQueue.enqueueMessage157

BinderProxy.sendDeathNotice() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
android.os.BinderProxy.sendDeathNotice
144Web pages
IllegalArgumentExceptionBinderProxy.sendDeathNotice144

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

android.os.FileUriExposedException
android.os.StrictMode.onFileUriExposed
123Web pages
FileUriExposedExceptionStrictMode.onFileUriExposed123

Parcel.readException() has thrown an IllegalStateException

java.lang.IllegalStateException
android.os.Parcel.readException
107Web pages
IllegalStateExceptionParcel.readException107

You must do fileSystem operations on a separate thread

android.os.StrictMode$StrictModeDiskReadViolation
android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk
105Web pages
StrictMode$StrictModeDiskReadViolationStrictMode$AndroidBlockGuardPolicy.onReadFromDisk105

BinderProxy.transact() has thrown a SecurityException

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

AsyncTask.finish() has thrown a NullPointerException

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

MessageQueue.enqueueMessage() has thrown a RuntimeException

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

Parcel.readValue() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Parcel.readValue
73Web pages
RuntimeExceptionParcel.readValue73

BinderProxy.transact() has thrown a TransactionTooLargeException

android.os.TransactionTooLargeException
android.os.BinderProxy.transact
70Web pages
TransactionTooLargeExceptionBinderProxy.transact70

Parcel.writeValue() has thrown a RuntimeException

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

Parcel.readParcelable() has thrown a BadParcelableException

android.os.BadParcelableException
1 frames hidden
android.os.Parcel.readParcelable
46Web pages
BadParcelableExceptionParcel.readParcelable46

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
38Web pages
BadParcelableExceptionParcel.readParcelable38

StrictMode.setClassInstanceLimit() has thrown a StrictMode$InstanceCountViolation

android.os.StrictMode$InstanceCountViolation
android.os.StrictMode.setClassInstanceLimit
32Web pages
StrictMode$InstanceCountViolationStrictMode.setClassInstanceLimit32

Parcel.openFileDescriptor() has thrown a FileNotFoundException

java.io.FileNotFoundException
android.os.Parcel.openFileDescriptor
31Web pages
FileNotFoundExceptionParcel.openFileDescriptor31

Bundle.getString() has thrown a ClassCastException

java.lang.ClassCastException
android.os.Bundle.getString
31Web pages
ClassCastExceptionBundle.getString31

PowerManager$WakeLock.release() has thrown a RuntimeException

java.lang.RuntimeException
1 frames hidden
android.os.PowerManager$WakeLock.release
29Web pages
RuntimeExceptionPowerManager$WakeLock.release29

SystemProperties.get() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
1 frames hidden
android.os.SystemProperties.get
28Web pages
UnsatisfiedLinkErrorSystemProperties.get28

MessageQueue.nativePollOnce() has thrown an IllegalStateException

java.lang.IllegalStateException
android.os.MessageQueue.nativePollOnce
26Web pages
IllegalStateExceptionMessageQueue.nativePollOnce26

Parcel.writeSerializable() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Parcel.writeSerializable
26Web pages
RuntimeExceptionParcel.writeSerializable26

BinderProxy.transact() has thrown a RuntimeException

java.lang.RuntimeException
1 frames hidden
android.os.BinderProxy.transact
25Web pages
RuntimeExceptionBinderProxy.transact25

BaseBundle.getString() has thrown a ClassCastException

java.lang.ClassCastException
android.os.BaseBundle.getString
25Web pages
ClassCastExceptionBaseBundle.getString25

StrictMode.readAndHandleBinderCallViolations() has thrown a StrictMode$LogStackTrace

android.os.StrictMode$LogStackTrace
android.os.StrictMode.readAndHandleBinderCallViolations
24Web pages
StrictMode$LogStackTraceStrictMode.readAndHandleBinderCallViolations24

Bundle.getByteArray() has thrown a ClassCastException

java.lang.ClassCastException
android.os.Bundle.getByteArray
23Web pages
ClassCastExceptionBundle.getByteArray23

StrictMode$AndroidBlockGuardPolicy.onWriteToDisk() has thrown a StrictMode$StrictModeDiskWriteViolation

android.os.StrictMode$StrictModeDiskWriteViolation
android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk
22Web pages
StrictMode$StrictModeDiskWriteViolationStrictMode$AndroidBlockGuardPolicy.onWriteToDisk22

BinderProxy.transact() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.os.BinderProxy.transact
20Web pages
IllegalStateExceptionBinderProxy.transact20

Looper.prepare() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Looper.prepare
20Web pages
RuntimeExceptionLooper.prepare20

Looper.loop() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Looper.loop
19Web pages
RuntimeExceptionLooper.loop19

Parcel.readIntArray() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Parcel.readIntArray
19Web pages
RuntimeExceptionParcel.readIntArray19

Binder.execTransact() has thrown a NullPointerException

java.lang.NullPointerException
2 frames hidden
android.os.Binder.execTransact
19Web pages
NullPointerExceptionBinder.execTransact19

Bundle.getParcelable() has thrown a ClassCastException

java.lang.ClassCastException
android.os.Bundle.getParcelable
18Web pages
ClassCastExceptionBundle.getParcelable18

Handler.dispatchMessage() has thrown an Object

System.Object
3 frames hidden
android.os.Handler.dispatchMessage
15Web pages
ObjectHandler.dispatchMessage15

Bundle.getParcelableArrayList() has thrown a ClassCastException

java.lang.ClassCastException
android.os.Bundle.getParcelableArrayList
14Web pages
ClassCastExceptionBundle.getParcelableArrayList14

Handler.<init>() has thrown a NullPointerException

java.lang.NullPointerException
android.os.Handler.<init>
13Web pages
NullPointerExceptionHandler.<init>13

BinderProxy.transact() has thrown a RemoteException

android.os.RemoteException
android.os.BinderProxy.transact
12Web pages
RemoteExceptionBinderProxy.transact12

Handler.dispatchMessage() has thrown a NullPointerException

java.lang.NullPointerException
3 frames hidden
android.os.Handler.dispatchMessage
12Web pages
NullPointerExceptionHandler.dispatchMessage12

Process.setThreadPriority() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
android.os.Process.setThreadPriority
12Web pages
IllegalArgumentExceptionProcess.setThreadPriority12

BaseBundle.getInt() has thrown a ClassCastException

java.lang.ClassCastException
android.os.BaseBundle.getInt
12Web pages
ClassCastExceptionBaseBundle.getInt12

Looper.loop() has thrown an IllegalStateException

java.lang.IllegalStateException
3 frames hidden
android.os.Looper.loop
11Web pages
IllegalStateExceptionLooper.loop11

MessageQueue.removeSyncBarrier() has thrown an IllegalStateException

java.lang.IllegalStateException
android.os.MessageQueue.removeSyncBarrier
11Web pages
IllegalStateExceptionMessageQueue.removeSyncBarrier11

HandlerThread.run() has thrown a CommandException

org.adaway.util.CommandException
7 frames hidden
android.os.HandlerThread.run
10Web pages
CommandExceptionHandlerThread.run10

Binder.execTransact() has thrown a FirebaseException

com.google.firebase.FirebaseException
5 frames hidden
android.os.Binder.execTransact
10Web pages
FirebaseExceptionBinder.execTransact10

MessageQueue.enqueueMessage() has thrown an AndroidRuntimeException

android.util.AndroidRuntimeException
android.os.MessageQueue.enqueueMessage
10Web pages
AndroidRuntimeExceptionMessageQueue.enqueueMessage10

StrictMode.executeDeathPenalty() has thrown a StrictMode$StrictModeViolation

android.os.StrictMode$StrictModeViolation
android.os.StrictMode.executeDeathPenalty
10Web pages
StrictMode$StrictModeViolationStrictMode.executeDeathPenalty10

HandlerThread.run() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
android.os.HandlerThread.run
10Web pages
IllegalArgumentExceptionHandlerThread.run10

Looper.loop() has thrown a NullPointerException

java.lang.NullPointerException
4 frames hidden
android.os.Looper.loop
9Web pages
NullPointerExceptionLooper.loop9
Package namePatterns foundSolution coverageSummary coverage
android.app4396
android.view3779
com.android.internal.os3358
android.os2584
android.widget1309
android.content688
android.database.sqlite619
com.android.server.am493
android.support.v7.widget484
android.content.res306
android.support.v7.app265
android.media225
libcore.io224
com.android.server197
android.graphics183
android.database171
android.text141
android.webkit105
java.util96
android.support.design.widget80
android.opengl78
android.util75
android.graphics.drawable72
android.preference68
android.provider64
com.android.server.pm62
com.android.server.wm55
android.net54
android.bluetooth53
android.location50
com.android.volley48
java.lang44
android.content.pm43
com.android.volley.toolbox42
android.animation41
java.nio39
android.hardware39
dalvik.system33
android.telephony31
com.android.internal.util31
android.net.http30
java.net29
android.test25
android.accounts23
com.android.systemui.statusbar21
com.android.server.net21
com.android.systemui.statusbar.phone21
android.view.inputmethod20
android.support.v7.view.menu20
android.speech.tts17
Package nameClass namePatterns foundSolution coverageSummary coverage
android.osHandlerThread1117
android.osBinder536
android.osLooper223
android.osHandler213
android.osParcel147
android.osAsyncTask82
android.osBundle64
android.osBaseBundle31
android.osMessageQueue25
android.osBinderProxy19
android.osEnvironment16
android.osStatFs12
android.osStrictMode$AndroidBlockGuardPolicy10
android.osMessage8
android.osUserManager8
android.osServiceManager8
android.osPowerManager$WakeLock7
android.osFileUtils6
android.osStrictMode6
android.osMessenger5
android.osProcess5
android.osParcelFileDescriptor4
android.osDropBoxManager4
android.osSystemVibrator3
android.osDebug3
android.osAsyncTask$InternalHandler3
android.osCountDownTimer2
android.osEnvironment$UserEnvironment2
android.osRemoteCallbackList2
android.osRecoverySystem2
android.osParcelFileDescriptor$AutoCloseInputStream1
android.osUEventObserver1
android.osPowerManager1
android.osHandler$MessengerImpl1
android.osSystemProperties1
android.osSystemClock1
android.osBuild1
android.osResultReceiver$MyResultReceiver1
android.osVibrator1
android.osCancellationSignal1
android.osAsyncTask$SerialExecutor1
Package nameClass nameMethod namePatterns foundSolution coverage
android.osHandlerThreadrun1116
android.osBinderexecTransact527
android.osLooperloop214
android.osHandlerdispatchMessage140
android.osAsyncTaskfinish60
android.osHandlerhandleCallback38
android.osParcelwriteBundle23
android.osBaseBundleunparcel17
android.osParcelreadValue16
android.osBundleunparcel16
android.osBinderProxytransact12
android.osParcelwriteValue12
android.osParcelreadException12
android.osMessageQueuenativePollOnce12
android.osParcelreadArrayMapInternal12
android.osParcelwriteArrayMapInternal11
android.osAsyncTaskexecute10
android.osBundlegetParcelable10
android.osHandlersendMessageDelayed10
android.osMessageQueuenext9
android.osParcelreadParcelable9
android.osBindertransact8
android.osParcelwriteSerializable8
android.osBundlegetSparseParcelableArray7
android.osStatFs<init>6
android.osBinderProxysendDeathNotice5
android.osHandlersendMessage5
android.osEnvironmentgetExternalStorageDirectory5
android.osBundlegetString5
android.osServiceManagergetService5
android.osEnvironmentgetExternalStorageState5
android.osStatFsdoStat5
android.osDropBoxManageraddText4
android.osMessengersend4
android.osAsyncTaskget4
android.osMessagesendToTarget4
android.osFileUtilsreadTextFile4
android.osStrictMode$AndroidBlockGuardPolicyonReadFromDisk4
android.osBundlegetBundle4
android.osHandlersendMessageAtTime4
android.osHandler<init>4
android.osAsyncTaskexecuteOnExecutor4
android.osParcelreadListInternal4
android.osParcelreadStringArray3
android.osAsyncTask$InternalHandlerhandleMessage3
android.osLooperprepare3
android.osMessageQueueenqueueMessage3
android.osHandlerpost3
android.osBundlegetParcelableArrayList3
android.osParcelwriteMapInternal3
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
android.osHandlerThreadrunThrowable103
android.osHandlerThreadrunNullPointerException101
android.osHandlerThreadrunIllegalStateException82
android.osBinderexecTransactSecurityException76
android.osHandlerThreadrunSecurityException75
android.osBinderexecTransactIllegalArgumentException69
android.osHandlerThreadrunRuntimeException67
android.osHandlerThreadrunFileNotFoundException54
android.osHandlerThreadrunIOException48
android.osBinderexecTransactNullPointerException45
android.osHandlerThreadrunIllegalArgumentException44
android.osBinderexecTransactRuntimeException44
android.osBinderexecTransactThrowable44
android.osHandlerThreadrunPackageManager$NameNotFoundException43
android.osHandlerThreadrunServiceConnectionLeaked42
android.osBinderexecTransactDeadObjectException41
android.osBinderexecTransactIllegalStateException40
android.osLooperloopNullPointerException36
android.osAsyncTaskfinishNullPointerException33
android.osHandlerThreadrunSocketTimeoutException28
android.osLooperloopRuntimeException27
android.osLooperloopIllegalStateException24
android.osHandlerdispatchMessageNullPointerException21
android.osHandlerThreadrunSSLHandshakeException18
android.osHandlerThreadrunJSONException18
android.osHandlerdispatchMessageRuntimeException17
android.osHandlerThreadrunResources$NotFoundException16
android.osParcelwriteBundleRuntimeException16
android.osHandlerThreadrunNumberFormatException16
android.osHandlerThreadrunNativeDaemonConnector$NativeDaemonFailureException15
android.osBinderexecTransactClassNotFoundException14
android.osBinderexecTransactFileNotFoundException14
android.osHandlerThreadrunClassNotFoundException14
android.osHandlerThreadrunExecutionException13
android.osHandlerThreadrunSocketException13
android.osBinderexecTransactIOException13
android.osBinderexecTransactClassCastException13
android.osHandlerThreadrunConnectException13
android.osHandlerThreadrunDeadObjectException12
android.osHandlerThreadrunIntentReceiverLeaked12
android.osHandlerThreadrunUnknownHostException12
android.osLooperloopIllegalArgumentException11
android.osBinderexecTransactTransactionTooLargeException11
android.osHandlerdispatchMessageIllegalStateException10
android.osHandlerThreadrunOutOfMemoryError10
android.osHandlerThreadrunSQLiteConstraintException10
android.osBinderexecTransactStrictMode$StrictModeDiskReadViolation9
android.osHandlerThreadrunException9
android.osHandlerdispatchMessagePackageManager$NameNotFoundException9
android.osHandlerThreadrunSQLiteException9