Android errors

The mobile operating system of Google

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

Top patterns

  1. You got an unhandled exception during activity initialization

    Check the body of your activity's onCreate(), onResume methods and the initializations of variables

  2. BaseDexClassLoader.findClass() has thrown a ClassNotFoundException
    No solution
  3. You 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


DescriptionException TypeEntry MethodWeb pages

You got an unhandled exception during activity initialization

java.lang.RuntimeException
android.app.ActivityThread.performLaunchActivity
4071Web pages
1Solution
RuntimeExceptionActivityThread.performLaunchActivity4071

BaseDexClassLoader.findClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
dalvik.system.BaseDexClassLoader.findClass
2059Web pages
ClassNotFoundExceptionBaseDexClassLoader.findClass2059

You tried to access to a resource without permission

java.lang.SecurityException
android.os.Parcel.readException
1247Web pages
1Solution
SecurityExceptionParcel.readException1247

There isn't Activity to handle Intent.

android.content.ActivityNotFoundException
android.app.Instrumentation.checkStartActivityResult
1127Web pages
1Solution
ActivityNotFoundExceptionInstrumentation.checkStartActivityResult1127

You executed network call on the main thread.

android.os.NetworkOnMainThreadException
android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork
1057Web pages
1Solution
NetworkOnMainThreadExceptionStrictMode$AndroidBlockGuardPolicy.onNetwork1057

You got an exception during execute of SQL statement

android.database.sqlite.SQLiteException
android.database.sqlite.SQLiteConnection.nativePrepareStatement
960Web pages
1Solution
SQLiteExceptionSQLiteConnection.nativePrepareStatement960

PathClassLoader.findClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
dalvik.system.PathClassLoader.findClass
677Web pages
ClassNotFoundExceptionPathClassLoader.findClass677

ViewRootImpl.<init>() has thrown a WindowLeaked

android.view.WindowLeaked
android.view.ViewRootImpl.<init>
560Web pages
1Solution
WindowLeakedViewRootImpl.<init>560

ViewRootImpl.setView() has thrown a WindowManager$BadTokenException

android.view.WindowManager$BadTokenException
android.view.ViewRootImpl.setView
551Web pages
WindowManager$BadTokenExceptionViewRootImpl.setView551

Instrumentation.newActivity() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
android.app.Instrumentation.newActivity
549Web pages
ClassNotFoundExceptionInstrumentation.newActivity549

ActivityThread.performLaunchActivity() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
android.app.ActivityThread.performLaunchActivity
542Web pages
ClassNotFoundExceptionActivityThread.performLaunchActivity542

Resources.getValue() has thrown a Resources$NotFoundException

android.content.res.Resources$NotFoundException
android.content.res.Resources.getValue
541Web pages
Resources$NotFoundExceptionResources.getValue541

LayoutInflater.createView() has thrown an InflateException

android.view.InflateException
android.view.LayoutInflater.createView
514Web pages
1Solution
InflateExceptionLayoutInflater.createView514

BitmapFactory.nativeDecodeAsset() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
android.graphics.BitmapFactory.nativeDecodeAsset
505Web pages
OutOfMemoryErrorBitmapFactory.nativeDecodeAsset505

BitmapFactory.decodeStream() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
android.graphics.BitmapFactory.decodeStream
498Web pages
OutOfMemoryErrorBitmapFactory.decodeStream498

ActivityThread.handleLaunchActivity() has thrown a RuntimeException

java.lang.ClassNotFoundException
6 frames hidden
android.app.ActivityThread.handleLaunchActivity
480Web pages
RuntimeExceptionActivityThread.handleLaunchActivity480

ActivityThread.performLaunchActivity() has thrown a RuntimeException

java.lang.ClassNotFoundException
5 frames hidden
android.app.ActivityThread.performLaunchActivity
480Web pages
RuntimeExceptionActivityThread.performLaunchActivity480

BitmapFactory.decodeResourceStream() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
2 frames hidden
android.graphics.BitmapFactory.decodeResourceStream
478Web pages
OutOfMemoryErrorBitmapFactory.decodeResourceStream478

WindowManagerGlobal.addView() has thrown a WindowLeaked

android.view.WindowLeaked
1 frames hidden
android.view.WindowManagerGlobal.addView
462Web pages
WindowLeakedWindowManagerGlobal.addView462

WindowManagerImpl.addView() has thrown a WindowLeaked

android.view.WindowLeaked
2 frames hidden
android.view.WindowManagerImpl.addView
460Web pages
WindowLeakedWindowManagerImpl.addView460

Resources.getText() has thrown a Resources$NotFoundException

android.content.res.Resources$NotFoundException
android.content.res.Resources.getText
455Web pages
Resources$NotFoundExceptionResources.getText455

WindowManagerGlobal.addView() has thrown a WindowManager$BadTokenException

android.view.WindowManager$BadTokenException
1 frames hidden
android.view.WindowManagerGlobal.addView
439Web pages
WindowManager$BadTokenExceptionWindowManagerGlobal.addView439

WindowManagerImpl.addView() has thrown a WindowManager$BadTokenException

android.view.WindowManager$BadTokenException
2 frames hidden
android.view.WindowManagerImpl.addView
435Web pages
WindowManager$BadTokenExceptionWindowManagerImpl.addView435

Dialog.show() has thrown a WindowLeaked

android.view.WindowLeaked
3 frames hidden
android.app.Dialog.show
418Web pages
WindowLeakedDialog.show418

Drawable.createFromResourceStream() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
3 frames hidden
android.graphics.drawable.Drawable.createFromResourceStream
415Web pages
OutOfMemoryErrorDrawable.createFromResourceStream415

Resources.loadDrawable() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
4 frames hidden
android.content.res.Resources.loadDrawable
399Web pages
OutOfMemoryErrorResources.loadDrawable399

ViewRootImpl.checkThread() has thrown a ViewRootImpl$CalledFromWrongThreadException

android.view.ViewRootImpl$CalledFromWrongThreadException
android.view.ViewRootImpl.checkThread
389Web pages
ViewRootImpl$CalledFromWrongThreadExceptionViewRootImpl.checkThread389

Handler.<init>() has thrown a RuntimeException

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

ActivityThread.deliverResults() has thrown a RuntimeException

java.lang.RuntimeException
android.app.ActivityThread.deliverResults
368Web pages
RuntimeExceptionActivityThread.deliverResults368

ViewGroup.addViewInner() has thrown an IllegalStateException

java.lang.IllegalStateException
android.view.ViewGroup.addViewInner
352Web pages
IllegalStateExceptionViewGroup.addViewInner352

ViewGroup.addView() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.view.ViewGroup.addView
349Web pages
IllegalStateExceptionViewGroup.addView349

ActivityThread.handleSendResult() has thrown a RuntimeException

java.lang.RuntimeException
1 frames hidden
android.app.ActivityThread.handleSendResult
345Web pages
1Solution
RuntimeExceptionActivityThread.handleSendResult345

ListView.layoutChildren() has thrown an IllegalStateException

java.lang.IllegalStateException
android.widget.ListView.layoutChildren
331Web pages
IllegalStateExceptionListView.layoutChildren331

Instrumentation.newActivity() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
android.app.Instrumentation.newActivity
322Web pages
ClassNotFoundExceptionInstrumentation.newActivity322

Bitmap.nativeCreate() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
android.graphics.Bitmap.nativeCreate
321Web pages
OutOfMemoryErrorBitmap.nativeCreate321

ActivityThread.performLaunchActivity() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
android.app.ActivityThread.performLaunchActivity
321Web pages
ClassNotFoundExceptionActivityThread.performLaunchActivity321

Bitmap.createBitmap() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
android.graphics.Bitmap.createBitmap
316Web pages
OutOfMemoryErrorBitmap.createBitmap316

AbstractCursor.checkPosition() has thrown a CursorIndexOutOfBoundsException

android.database.CursorIndexOutOfBoundsException
android.database.AbstractCursor.checkPosition
309Web pages
1Solution
CursorIndexOutOfBoundsExceptionAbstractCursor.checkPosition309

AbstractWindowedCursor.checkPosition() has thrown a CursorIndexOutOfBoundsException

android.database.CursorIndexOutOfBoundsException
1 frames hidden
android.database.AbstractWindowedCursor.checkPosition
307Web pages
CursorIndexOutOfBoundsExceptionAbstractWindowedCursor.checkPosition307

Activity.startActivity() has thrown an ActivityNotFoundException

android.content.ActivityNotFoundException
4 frames hidden
android.app.Activity.startActivity
306Web pages
ActivityNotFoundExceptionActivity.startActivity306

BitmapFactory.nativeDecodeStream() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
android.graphics.BitmapFactory.nativeDecodeStream
305Web pages
OutOfMemoryErrorBitmapFactory.nativeDecodeStream305

Activity.startActivity() has thrown an ActivityNotFoundException

android.content.ActivityNotFoundException
5 frames hidden
android.app.Activity.startActivity
305Web pages
ActivityNotFoundExceptionActivity.startActivity305

BinderProxy.transact() has thrown a DeadObjectException

android.os.DeadObjectException
1 frames hidden
android.os.BinderProxy.transact
300Web pages
1Solution
DeadObjectExceptionBinderProxy.transact300

BinderProxy.transactNative() has thrown a DeadObjectException

android.os.DeadObjectException
android.os.BinderProxy.transactNative
300Web pages
DeadObjectExceptionBinderProxy.transactNative300

Dialog.show() has thrown a WindowManager$BadTokenException

android.view.WindowManager$BadTokenException
3 frames hidden
android.app.Dialog.show
300Web pages
WindowManager$BadTokenExceptionDialog.show300

ViewGroup.addView() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
android.view.ViewGroup.addView
296Web pages
IllegalStateExceptionViewGroup.addView296

BitmapFactory.nativeDecodeAsset() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
android.graphics.BitmapFactory.nativeDecodeAsset
287Web pages
OutOfMemoryErrorBitmapFactory.nativeDecodeAsset287

RecyclerView$Recycler.getViewForPosition() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
android.support.v7.widget.RecyclerView$Recycler.getViewForPosition
286Web pages
IndexOutOfBoundsExceptionRecyclerView$Recycler.getViewForPosition286

BitmapFactory.decodeStream() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
2 frames hidden
android.graphics.BitmapFactory.decodeStream
285Web pages
OutOfMemoryErrorBitmapFactory.decodeStream285

RecyclerView$Recycler.getViewForPosition() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
android.support.v7.widget.RecyclerView$Recycler.getViewForPosition
283Web pages
IndexOutOfBoundsExceptionRecyclerView$Recycler.getViewForPosition283
Package namePatterns foundSolution coverageSummary coverage
android.app4865
android.view4314
android.widget1497
android.os1344
com.android.internal.os1166
android.database.sqlite712
android.content636
android.support.v7.widget544
com.android.server.am484
android.content.res388
android.support.v7.app375
javax.crypto312
android.media238
android.graphics209
android.database195
android.text159
android.webkit131
android.support.design.widget104
android.preference96
android.graphics.drawable91
com.android.server81
android.util80
android.provider73
com.android.server.pm65
android.net59
com.android.server.wm59
android.bluetooth57
android.test54
com.android.volley.toolbox49
android.location48
android.content.pm47
android.hardware44
android.animation39
java.lang39
dalvik.system38
android.telephony36
android.net.http34
com.android.internal.util32
android.opengl26
android.accounts25
android.support.v7.view.menu24
com.android.systemui.statusbar23
com.android.systemui.statusbar.phone21
android.view.inputmethod20
android.hardware.camera2.impl20
com.android.server.net19
android.nfc.tech19
android.support.v4.view19
com.android.volley17
android.support.v7.view16
Package nameClass namePatterns foundSolution coverageSummary coverage
android.appActivityThread3125
android.viewViewGroup1372
android.viewLayoutInflater1316
android.viewView1080
com.android.internal.osZygoteInit758
android.appActivity597
com.android.internal.osZygoteInit$MethodAndArgsCaller358
android.database.sqliteSQLiteDatabase304
android.osLooper297
android.osHandler265
android.content.resResources247
com.android.server.amActivityManagerService235
javax.cryptoCipher217
android.contentContextWrapper216
android.support.v7.appAppCompatActivity206
android.widgetTextView195
android.widgetFrameLayout194
android.contentContentResolver185
android.osParcel181
android.osBinder163
android.database.sqliteSQLiteOpenHelper160
android.appFragmentManagerImpl159
android.appInstrumentation158
android.widgetListView152
android.widgetLinearLayout146
android.appContextImpl141
android.support.v7.widgetRecyclerView135
android.support.v7.widgetLinearLayoutManager116
android.widgetAbsListView111
android.viewViewRootImpl110
android.mediaMediaPlayer102
android.widgetImageView100
android.webkitWebView91
android.osAsyncTask87
android.appDialog86
android.content.resTypedArray81
android.appApplicationPackageManager80
android.graphicsBitmap77
com.android.server.amActivityStackSupervisor76
android.osBundle75
android.database.sqliteSQLiteConnection72
com.android.server.amActivityStack70
android.appActivityThread$H70
android.viewViewRootImpl$InputStage66
android.databaseAbstractCursor66
android.contentIntent63
android.widgetArrayAdapter63
android.support.v7.appActionBarActivity62
android.textSpannableStringBuilder59
com.android.server.pmPackageManagerService54
Package nameClass nameMethod namePatterns foundSolution coverage
android.appActivityThreadmain864
com.android.internal.osZygoteInitmain755
android.appActivityThreadperformLaunchActivity637
android.appActivityThreadhandleLaunchActivity537
android.viewLayoutInflaterinflate513
android.viewLayoutInflaterrInflate395
android.viewViewmeasure367
com.android.internal.osZygoteInit$MethodAndArgsCallerrun358
android.viewViewGrouplayout339
android.appActivityThreadhandleBindApplication298
android.osLooperloop288
android.viewViewGroupdispatchTouchEvent274
android.viewLayoutInflatercreateViewFromTag222
android.appActivitysetContentView213
android.osHandlerdispatchMessage177
android.viewViewGroupmeasureChildWithMargins170
android.viewViewGroupdispatchDraw150
android.osBinderexecTransact145
android.support.v7.appAppCompatActivitysetContentView137
android.viewViewdraw122
android.widgetFrameLayoutonMeasure101
android.appActivityThreaddeliverResults100
android.appActivityThreadhandleReceiver97
javax.cryptoCipherdoFinal90
android.viewLayoutInflaterrInflateChildren86
android.appActivityThreadperformResumeActivity85
android.viewViewgetDisplayList79
android.viewLayoutInflatercreateView78
android.contentContentResolverquery77
android.viewViewperformClick76
android.appFragmentManagerImplmoveToState73
android.appActivityThreadhandleServiceArgs72
android.viewViewlayout72
android.appActivityThread$HhandleMessage70
android.viewViewupdateDisplayListIfDirty70
android.appActivityThreadhandleCreateService70
android.content.resResourcesloadDrawable67
android.appActivitystartActivityForResult66
android.database.sqliteSQLiteOpenHelpergetWritableDatabase66
android.appActivitystartActivity65
android.appInstrumentationcallActivityOnCreate65
android.widgetTextView<init>65
android.osAsyncTaskfinish63
android.database.sqliteSQLiteDatabaseopenDatabase58
javax.cryptoCipherinit58
android.viewViewrequestLayout57
android.support.v7.widgetLinearLayoutManagerfill57
android.content.resResourcesgetDrawable57
android.widgetTextViewsetText56
android.appFragmentManagerImplexecPendingActions56
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
android.viewLayoutInflaterinflateInflateException314
android.appActivityThreadperformLaunchActivityNullPointerException240
android.viewLayoutInflaterrInflateInflateException232
android.appActivityThreadhandleLaunchActivityRuntimeException209
android.appActivityThreadmainNullPointerException203
com.android.internal.osZygoteInitmainNullPointerException177
android.appActivityThreadmainRuntimeException162
android.appActivitysetContentViewInflateException153
android.viewViewmeasureNullPointerException129
android.viewViewGrouplayoutNullPointerException119
android.viewLayoutInflatercreateViewFromTagInflateException112
android.appActivityThreadperformLaunchActivityInflateException98
android.viewViewGroupdispatchTouchEventNullPointerException96
com.android.internal.osZygoteInit$MethodAndArgsCallerrunNullPointerException94
com.android.internal.osZygoteInitmainRuntimeException93
android.appActivityThreadmainIllegalStateException87
android.appActivityThreadhandleBindApplicationStrictMode$StrictModeDiskReadViolation85
android.viewViewGroupmeasureChildWithMarginsNullPointerException66
android.appActivityThreaddeliverResultsNullPointerException65
android.viewViewmeasureIllegalStateException65
android.support.v7.appAppCompatActivitysetContentViewInflateException62
android.viewViewGrouplayoutIndexOutOfBoundsException62
android.osLooperloopNullPointerException55
com.android.internal.osZygoteInitmainNoClassDefFoundError54
android.appActivityThreadmainIllegalArgumentException53
com.android.internal.osZygoteInitmainIllegalStateException52
android.viewViewGrouplayoutIllegalStateException49
android.viewViewmeasureClassCastException49
android.widgetFrameLayoutonMeasureNullPointerException47
android.viewLayoutInflatercreateViewInvocationTargetException47
android.appActivityThreadhandleLaunchActivityNullPointerException43
android.viewViewmeasureResources$NotFoundException43
javax.cryptoCipherdoFinalBadPaddingException42
android.appActivityThreadperformLaunchActivityIllegalStateException42
android.appActivityThreadperformLaunchActivityRuntimeException42
android.viewViewrequestLayoutViewRootImpl$CalledFromWrongThreadException41
android.appActivityThreadhandleBindApplicationRuntimeException39
com.android.internal.osZygoteInitmainIllegalArgumentException38
android.viewViewGroupdispatchDrawNullPointerException37
android.viewViewGroupmeasureChildWithMarginsIllegalStateException37
com.android.internal.osZygoteInit$MethodAndArgsCallerrunIllegalStateException37
javax.cryptoCipherinitInvalidKeyException37
android.viewViewgetDisplayListNullPointerException36
android.appActivityThreadperformLaunchActivityIllegalArgumentException35
android.osAsyncTaskfinishNullPointerException34
android.viewViewdrawNullPointerException34
android.viewViewGroupdispatchDrawRuntimeException33
android.osLooperloopRuntimeException32
android.appInstrumentationcallActivityOnCreateNullPointerException32
android.content.resResourcesloadDrawableResources$NotFoundException32