1. Explore
  2. »
  3. Android

Android errors

The mobile operating system of Google

https://developer.android.com/
Solution coverage:
Summary coverage:
Error patternsPackagesClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

AbsListView.obtainView() has thrown a NullPointerException

java.lang.NullPointerException
2 frames hidden
android.widget.AbsListView.obtainView
176Web pages
NullPointerExceptionAbsListView.obtainView()176

Add the correct flags to start activity from outside of an Activity context

android.util.AndroidRuntimeException
android.app.ContextImpl.startActivity
175Web pages
AndroidRuntimeExceptionContextImpl.startActivity()175

StringToReal.invalidReal() has thrown a NumberFormatException

java.lang.NumberFormatException
java.lang.StringToReal.invalidReal
175Web pages
NumberFormatExceptionStringToReal.invalidReal()175

View.requestLayout() has thrown a ViewRootImpl$CalledFromWrongThreadException

android.view.ViewRootImpl$CalledFromWrongThreadException
5 frames hidden
android.view.View.requestLayout
174Web pages
ViewRootImpl$CalledFromWrongThreadExceptionView.requestLayout()174

LayoutInflater.inflate() has thrown a Resources$NotFoundException

android.content.res.Resources$NotFoundException
3 frames hidden
android.view.LayoutInflater.inflate
173Web pages
Resources$NotFoundExceptionLayoutInflater.inflate()173

ContextWrapper.bindService() has thrown a ServiceConnectionLeaked

android.app.ServiceConnectionLeaked
4 frames hidden
android.content.ContextWrapper.bindService
172Web pages
1Solution
ServiceConnectionLeakedContextWrapper.bindService()172

Database connection is already closed

java.lang.IllegalStateException
android.database.sqlite.SQLiteClosable.acquireReference
171Web pages
1Solution
IllegalStateExceptionSQLiteClosable.acquireReference()171

ViewTreeObserver.dispatchOnTouchModeChanged() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
android.view.ViewTreeObserver.dispatchOnTouchModeChanged
171Web pages
IllegalStateExceptionViewTreeObserver.dispatchOnTouchModeChanged()171

LayoutInflater.createViewFromTag() has thrown an InflateException

java.lang.ClassNotFoundException
5 frames hidden
android.view.LayoutInflater.createViewFromTag
170Web pages
InflateExceptionLayoutInflater.createViewFromTag()170

ContextImpl.registerReceiver() has thrown an IntentReceiverLeaked

android.app.IntentReceiverLeaked
3 frames hidden
android.app.ContextImpl.registerReceiver
168Web pages
IntentReceiverLeakedContextImpl.registerReceiver()168

Check your Cursor initialization, before use it.

java.lang.IllegalStateException
android.database.CursorWindow.nativeGetString
167Web pages
IllegalStateExceptionCursorWindow.nativeGetString()167

Database constraint failed

android.database.sqlite.SQLiteConstraintException
android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId
167Web pages
1Solution
SQLiteConstraintExceptionSQLiteConnection.nativeExecuteForLastInsertedRowId()167

You must to check the length of String

java.lang.IndexOutOfBoundsException
android.text.SpannableStringBuilder.checkRange
166Web pages
IndexOutOfBoundsExceptionSpannableStringBuilder.checkRange()166

ViewRootImpl.ensureTouchModeLocally() has thrown an IllegalStateException

java.lang.IllegalStateException
3 frames hidden
android.view.ViewRootImpl.ensureTouchModeLocally
164Web pages
IllegalStateExceptionViewRootImpl.ensureTouchModeLocally()164

AbstractWindowedCursor.getString() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
android.database.AbstractWindowedCursor.getString
164Web pages
1Solution
IllegalStateExceptionAbstractWindowedCursor.getString()164

TypedArray.getDrawable() has thrown a Resources$NotFoundException

android.content.res.Resources$NotFoundException
1 frames hidden
android.content.res.TypedArray.getDrawable
164Web pages
Resources$NotFoundExceptionTypedArray.getDrawable()164

SQLiteConnection.executeForLastInsertedRowId() has thrown a SQLiteConstraintException

android.database.sqlite.SQLiteConstraintException
1 frames hidden
android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId
164Web pages
SQLiteConstraintExceptionSQLiteConnection.executeForLastInsertedRowId()164

SQLiteDatabase.rawQuery() has thrown a SQLiteException

android.database.sqlite.SQLiteException
8 frames hidden
android.database.sqlite.SQLiteDatabase.rawQuery
163Web pages
SQLiteExceptionSQLiteDatabase.rawQuery()163

ViewRootImpl.invalidateChildInParent() has thrown a ViewRootImpl$CalledFromWrongThreadException

android.view.ViewRootImpl$CalledFromWrongThreadException
1 frames hidden
android.view.ViewRootImpl.invalidateChildInParent
163Web pages
ViewRootImpl$CalledFromWrongThreadExceptionViewRootImpl.invalidateChildInParent()163

BootClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
java.lang.BootClassLoader.loadClass
163Web pages
ClassNotFoundExceptionBootClassLoader.loadClass()163

SQLiteSession.executeForLastInsertedRowId() has thrown a SQLiteConstraintException

android.database.sqlite.SQLiteConstraintException
2 frames hidden
android.database.sqlite.SQLiteSession.executeForLastInsertedRowId
162Web pages
SQLiteConstraintExceptionSQLiteSession.executeForLastInsertedRowId()162

You must to start service on different way for post-7.0 devices

java.lang.IllegalStateException
2 frames hidden
android.content.ContextWrapper.startService
160Web pages
IllegalStateExceptionContextWrapper.startService()160

Resources.getDrawable() has thrown a Resources$NotFoundException

android.content.res.Resources$NotFoundException
1 frames hidden
android.content.res.Resources.getDrawable
160Web pages
Resources$NotFoundExceptionResources.getDrawable()160

Handler.enqueueMessage() has thrown an IllegalStateException

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

SQLiteStatement.executeInsert() has thrown a SQLiteConstraintException

android.database.sqlite.SQLiteConstraintException
3 frames hidden
android.database.sqlite.SQLiteStatement.executeInsert
160Web pages
SQLiteConstraintExceptionSQLiteStatement.executeInsert()160

ViewGroup.invalidateChild() has thrown a ViewRootImpl$CalledFromWrongThreadException

android.view.ViewRootImpl$CalledFromWrongThreadException
2 frames hidden
android.view.ViewGroup.invalidateChild
159Web pages
ViewRootImpl$CalledFromWrongThreadExceptionViewGroup.invalidateChild()159

You try to use a missing asset

java.io.FileNotFoundException
android.content.res.AssetManager.openAsset
157Web pages
FileNotFoundExceptionAssetManager.openAsset()157

ContextImpl.registerReceiver() has thrown an IntentReceiverLeaked

android.app.IntentReceiverLeaked
4 frames hidden
android.app.ContextImpl.registerReceiver
157Web pages
IntentReceiverLeakedContextImpl.registerReceiver()157

Handler.sendMessageAtTime() has thrown an IllegalStateException

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

ContextWrapper.registerReceiver() has thrown an IntentReceiverLeaked

android.app.IntentReceiverLeaked
5 frames hidden
android.content.ContextWrapper.registerReceiver
154Web pages
IntentReceiverLeakedContextWrapper.registerReceiver()154

AssetManager.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
android.content.res.AssetManager.open
151Web pages
FileNotFoundExceptionAssetManager.open()151

BinderProxy.sendDeathNotice() has thrown an IllegalArgumentException

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

Handler.sendMessageDelayed() has thrown an IllegalStateException

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

You have a problem with the initialization of your Service class

java.lang.RuntimeException
android.app.ActivityThread.handleServiceArgs
146Web pages
RuntimeExceptionActivityThread.handleServiceArgs()146

AssetManager.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
android.content.res.AssetManager.open
144Web pages
FileNotFoundExceptionAssetManager.open()144

You must to update your adapter after data modification

java.lang.IndexOutOfBoundsException
android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition
143Web pages
IndexOutOfBoundsExceptionRecyclerView$Recycler.validateViewHolderForOffsetPosition()143

Action cannot be performed at this phase of the lifecycle of Fragment

java.lang.IllegalStateException
android.app.FragmentManagerImpl.checkStateLoss
143Web pages
IllegalStateExceptionFragmentManagerImpl.checkStateLoss()143

Activity.startActivity() has thrown an ActivityNotFoundException

android.content.ActivityNotFoundException
6 frames hidden
android.app.Activity.startActivity
142Web pages
ActivityNotFoundExceptionActivity.startActivity()142

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.onFileUriExposed()140

LayoutInflater.onCreateView() has thrown an InflateException

android.view.InflateException
2 frames hidden
android.view.LayoutInflater.onCreateView
139Web pages
InflateExceptionLayoutInflater.onCreateView()139

Uri.checkFileUriExposed() has thrown a FileUriExposedException

android.os.FileUriExposedException
1 frames hidden
android.net.Uri.checkFileUriExposed
137Web pages
FileUriExposedExceptionUri.checkFileUriExposed()137

You are trying to use ListActivity whose id attribute 'android.R.id.list' isn't exist

java.lang.RuntimeException
android.app.ListActivity.onContentChanged
135Web pages
RuntimeExceptionListActivity.onContentChanged()135

ActivityThread.main() has thrown a RuntimeException

java.lang.ClassNotFoundException
11 frames hidden
android.app.ActivityThread.main
135Web pages
RuntimeExceptionActivityThread.main()135

Width and height must be greater, than 0

java.lang.IllegalArgumentException
2 frames hidden
android.graphics.Bitmap.createBitmap
135Web pages
IllegalArgumentExceptionBitmap.createBitmap()135

SQLiteDatabase.query() has thrown a SQLiteException

android.database.sqlite.SQLiteException
9 frames hidden
android.database.sqlite.SQLiteDatabase.query
134Web pages
SQLiteExceptionSQLiteDatabase.query()134

LayoutInflater.createViewFromTag() has thrown an InflateException

android.view.InflateException
3 frames hidden
android.view.LayoutInflater.createViewFromTag
133Web pages
InflateExceptionLayoutInflater.createViewFromTag()133

ContextImpl.startActivity() has thrown an AndroidRuntimeException

android.util.AndroidRuntimeException
1 frames hidden
android.app.ContextImpl.startActivity
130Web pages
AndroidRuntimeExceptionContextImpl.startActivity()130

Instrumentation.newApplication() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
android.app.Instrumentation.newApplication
129Web pages
ClassNotFoundExceptionInstrumentation.newApplication()129

LoadedApk.makeApplication() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
android.app.LoadedApk.makeApplication
128Web pages
ClassNotFoundExceptionLoadedApk.makeApplication()128

SQLiteDatabase.openDatabase() has thrown a SQLiteCantOpenDatabaseException

android.database.sqlite.SQLiteCantOpenDatabaseException
9 frames hidden
android.database.sqlite.SQLiteDatabase.openDatabase
128Web pages
SQLiteCantOpenDatabaseExceptionSQLiteDatabase.openDatabase()128
Nothing to list here.
Nothing to list here.
Nothing to list here.
Nothing to list here.