Error map

IllegalStateException: Not allowed to start service Intent (app is in background) java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.example/.SyncService }: app is in background uid UidRecord{...}

Android · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

IllegalStateException: Not allowed to start service Intent (app is in background) — java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.example/.SyncService }: app is in background uid UidRecord{...} (Android)IllegalStat…RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED — SecurityException: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts (Android)RECEIVER_EXPORTED o…startForeground not called — Context.startForegroundService() did not then call Service.startForeground() / ForegroundServiceStartNotAllowedException (Android)startForeground not…Xiaomi/Huawei/Oppo kills background service — (behavior) background work stops after screen off on MIUI/EMUI/ColorOS (Android)Xiaomi/Huawei/Oppo …WorkManager unique work cancelled / REPLACE vs KEEP — (behavior) enqueueUniqueWork cancels the running job (Android)WorkManager unique …MissingForegroundServiceTypeException — android.app.MissingForegroundServiceTypeException: Starting FGS without a type (Android)MissingForegroundSe…No Channel found for pkg / notification not displayed — Notification: No Channel found for pkg=com.example, channelId=default, id=1 — dropping (Android)No Channel found fo…Play Billing: SERVICE_UNAVAILABLE / BILLING_UNAVAILABLE — BillingResponseCode.BILLING_UNAVAILABLE: Billing API version is not supported for the type requested (Android)Play Billing: SERVI…WorkManager: Could not create Worker — androidx.work.WorkerFactory: Could not instantiate com.example.SyncWorker / NoSuchMethodException: SyncWorker.<init> [Context, WorkerParameters] (Android)WorkManager: Could …WorkManager work never runs (constraints not met) — WM-WorkerWrapper: Work [ id=… ] was cancelled / state ENQUEUED (Android)WorkManager work ne…Background task expired / beginBackgroundTask — Background Task 123 ("Task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination (iOS)Background task exp…WorkManager expedited work quota / OutOfQuotaPolicy — IllegalStateException: Expedited work can't be... quota exceeded (Android)WorkManager expedit…Background URLSession completion handler never called — (behavior) background download finishes but app isn't notified (iOS)Background URLSessi…adb unauthorized — adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set (Android)adb unauthorizedno devices/emulators found — adb: no devices/emulators found / error: device not found (Android)no devices/emulator…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …no endpoints — Service has no endpoints (no endpoints available for service / Endpoints: <none>) (Kubernetes)no endpointsprovided port is not in the valid range — spec.ports[0].nodePort: Invalid value: 80: provided port is not in the valid range. The range of valid ports is 30000-32767 (Kubernetes)provided port is no…Job for x.service failed — Job for nginx.service failed because the control process exited with error code (Linux)Job for x.service f…Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource li…Error building the app bundle — Execution failed for task ':app:bundleRelease'. Error while executing bundletool (Android)Error building the …Play Console: Your app needs a permissions declaration (SMS / background location) — Your app uses permissions that require a declaration form (Android)Play Console: Your …Play Console: Data safety section incomplete or inaccurate — There are issues with your Data safety form (Android)Play Console: Data …Play Console: Advertising ID declaration required — Your app uses the advertising ID but didn't declare it (Android)Play Console: Adver…ActivityNotFoundException — ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml? (Android)ActivityNotFoundExc…INSTALL_FAILED_MISSING_SHARED_LIBRARY — Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] (Android)INSTALL_FAILED_MISS…INSTALL_FAILED_CONFLICTING_PROVIDER — Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] (Android)INSTALL_FAILED_CONF…FLAG_IMMUTABLE or FLAG_MUTABLE — Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent (Android)FLAG_IMMUTABLE or F…POST_NOTIFICATIONS permission denied (Android 13) — Notification not shown: android.permission.POST_NOTIFICATIONS has not been granted (Android)POST_NOTIFICATIONS …RemoteServiceException: Bad notification for startForeground — android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification (Android)RemoteServiceExcept…HAXM / Hyper-V: emulator needs hardware acceleration — emulator: ERROR: x86 emulation currently requires hardware acceleration! CPU acceleration status: HAX kernel module is not installed! (Android)HAXM / Hyper-V: emu…AVD: Unknown error / emulator did not start — Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (Android)AVD: Unknown error …Play Billing: DEVELOPER_ERROR (5) — BillingResponseCode.DEVELOPER_ERROR: Invalid arguments provided to the API (Android)Play Billing: DEVEL…RuntimeException: Cannot create an instance of class ViewModel — java.lang.RuntimeException: Cannot create an instance of class com.example.MainViewModel Caused by: java.lang.NoSuchMethodException: MainViewModel.<init> [] (Android)RuntimeException: C…Hilt: Hilt Activity must be attached to an @AndroidEntryPoint Application — java.lang.IllegalStateException: Hilt Activity must be attached to an @AndroidEntryPoint Application (Android)Hilt: Hilt Activity…Dagger/MissingBinding: cannot be provided without an @Inject constructor — error: [Dagger/MissingBinding] com.example.Repository cannot be provided without an @Inject constructor or an @Provides-annotated method (Android)Dagger/MissingBindi…Hibernate ConstraintViolationException — org.hibernate.exception.ConstraintViolationException: could not execute statement (Java)Hibernate Constrain…ANR — ANR: Application Not Responding (Input dispatching timed out) (Android)ANRAppWidget not updating / Problem loading widget — Can't load widget / RemoteViews: Android.view.InflateException in widget (Android)AppWidget not updat…EXC_BAD_ACCESS — Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) (iOS)EXC_BAD_ACCESSNSUnknownKeyException — NSUnknownKeyException: this class is not key value coding-compliant for the key x (iOS)NSUnknownKeyExcepti…unable to dequeue a cell with identifier — unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard (iOS)unable to dequeue a…batch response: This repository is over its data quota — batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs (Git)batch response: Thi…In-app review dialog not showing — (behavior) requestReviewFlow succeeds but no dialog appears (Android)In-app review dialo…NSURLErrorDomain Code=-1009 — Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." (iOS)NSURLErrorDomain Co…Gradle sync failed: Connection reset / Could not install Gradle distribution — Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.7-bin.zip'. Connection reset (Android)Gradle sync failed:…LFS file contains pointer text (version https://git-lfs.github.com/spec/v1) — version https://git-lfs.github.com/spec/v1 oid sha256:abc size 123456 (Git)LFS file contains p…

Directly related (12)

RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTEDAndroid

SecurityException: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

Apps targeting Android 14 must say whether a runtime-registered BroadcastReceiver is exported.

startForeground not calledAndroid

Context.startForegroundService() did not then call Service.startForeground() / ForegroundServiceStartNotAllowedException

A foreground service didn’t call startForeground() within a few seconds, or the app tried to start one from the background where…

Xiaomi/Huawei/Oppo kills background serviceAndroid

(behavior) background work stops after screen off on MIUI/EMUI/ColorOS

Vendor battery managers stop background apps.

WorkManager unique work cancelled / REPLACE vs KEEPAndroid

(behavior) enqueueUniqueWork cancels the running job

ExistingWorkPolicy.REPLACE cancels the running work.

MissingForegroundServiceTypeExceptionAndroid

android.app.MissingForegroundServiceTypeException: Starting FGS without a type

On Android 14 every foreground service must declare a type.

No Channel found for pkg / notification not displayedAndroid

Notification: No Channel found for pkg=com.example, channelId=default, id=1 — dropping

On Android 8+ a notification needs an existing channel.

Play Billing: SERVICE_UNAVAILABLE / BILLING_UNAVAILABLEAndroid

BillingResponseCode.BILLING_UNAVAILABLE: Billing API version is not supported for the type requested

Google Play billing can't be reached on this device.

WorkManager: Could not create WorkerAndroid

androidx.work.WorkerFactory: Could not instantiate com.example.SyncWorker / NoSuchMethodException: SyncWorker.<init> [Context, WorkerParameters]

WorkManager can't construct your Worker with its default factory.

WorkManager work never runs (constraints not met)Android

WM-WorkerWrapper: Work [ id=… ] was cancelled / state ENQUEUED

A scheduled task stays enqueued and doesn't execute.

Background task expired / beginBackgroundTaskiOS

Background Task 123 ("Task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination

A background task ran too long.

WorkManager expedited work quota / OutOfQuotaPolicyAndroid

IllegalStateException: Expedited work can't be... quota exceeded

The app used up its expedited job quota.

Background URLSession completion handler never callediOS

(behavior) background download finishes but app isn't notified

The app didn't implement the background session hooks.

Two steps away (34)

adb unauthorizedAndroid

adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set

The phone hasn’t accepted your computer’s RSA key for USB debugging yet.

no devices/emulators foundAndroid

adb: no devices/emulators found / error: device not found

adb can’t see any connected device or running emulator.

android:attr/lStar not foundAndroid

AAPT: error: resource android:attr/lStar not found

A dependency (androidx.core 1.7+) uses an attribute from Android 12 (API 31), but your module compiles against an older compileSd…

no endpointsKubernetes

Service has no endpoints (no endpoints available for service / Endpoints: <none>)

The Service’s selector matches no ready pods, so traffic to it is refused or returns 503.

provided port is not in the valid rangeKubernetes

spec.ports[0].nodePort: Invalid value: 80: provided port is not in the valid range. The range of valid ports is 30000-32767

A NodePort Service asked for a port outside the cluster’s NodePort range (default 30000–32767).

Job for x.service failedLinux

Job for nginx.service failed because the control process exited with error code

systemd tried to start the service, but its start command failed. The real reason is in the service’s status/journal.

Android resource linking failedAndroid

AAPT: error: resource x (aka y) not found — Android resource linking failed

A layout, manifest or style references a resource (drawable, string, style, attribute) that doesn’t exist in the module or its de…

Error building the app bundleAndroid

Execution failed for task ':app:bundleRelease'. Error while executing bundletool

Building the Android App Bundle (.aab) failed in the bundle step.

Play Console: Your app needs a permissions declaration (SMS / background location)Android

Your app uses permissions that require a declaration form

Play blocks the release until you justify sensitive permissions.

Play Console: Data safety section incomplete or inaccurateAndroid

There are issues with your Data safety form

The Data safety declaration doesn't match what the app does.

Play Console: Advertising ID declaration requiredAndroid

Your app uses the advertising ID but didn't declare it

Apps targeting Android 13+ must declare use of the advertising ID.

ActivityNotFoundExceptionAndroid

ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml?

An Intent targets an Activity that isn’t declared in the manifest, or an implicit intent has no app to handle it.

INSTALL_FAILED_MISSING_SHARED_LIBRARYAndroid

Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

The app requires a `uses-library` that this device or emulator image doesn't have.

INSTALL_FAILED_CONFLICTING_PROVIDERAndroid

Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

Another app already uses the same ContentProvider authority.

FLAG_IMMUTABLE or FLAG_MUTABLEAndroid

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

Apps targeting Android 12+ must declare PendingIntent mutability; missing flags crash.

POST_NOTIFICATIONS permission denied (Android 13)Android

Notification not shown: android.permission.POST_NOTIFICATIONS has not been granted

Android 13 requires a runtime permission to show notifications.

RemoteServiceException: Bad notification for startForegroundAndroid

android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification

The notification passed to startForeground is invalid (often no channel or no small icon).

HAXM / Hyper-V: emulator needs hardware accelerationAndroid

emulator: ERROR: x86 emulation currently requires hardware acceleration! CPU acceleration status: HAX kernel module is not installed!

The x86 emulator needs virtualization and can't use it.

AVD: Unknown error / emulator did not startAndroid

Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT

The emulator cannot find its SDK or AVD files.

Play Billing: DEVELOPER_ERROR (5)Android

BillingResponseCode.DEVELOPER_ERROR: Invalid arguments provided to the API

The billing call used invalid arguments or an app Play doesn't recognise.

RuntimeException: Cannot create an instance of class ViewModelAndroid

java.lang.RuntimeException: Cannot create an instance of class com.example.MainViewModel Caused by: java.lang.NoSuchMethodException: MainViewModel.<init> []

The default ViewModel factory can only build a ViewModel with a no-argument (or Application) constructor.

Hilt: Hilt Activity must be attached to an @AndroidEntryPoint ApplicationAndroid

java.lang.IllegalStateException: Hilt Activity must be attached to an @AndroidEntryPoint Application

Hilt isn't initialized because the Application class isn't annotated or registered.

Dagger/MissingBinding: cannot be provided without an @Inject constructorAndroid

error: [Dagger/MissingBinding] com.example.Repository cannot be provided without an @Inject constructor or an @Provides-annotated method

Dagger or Hilt has no way to create a requested type.

Hibernate ConstraintViolationExceptionJava

org.hibernate.exception.ConstraintViolationException: could not execute statement

The database rejected an insert/update because of a constraint (unique, foreign key, not null).

ANRAndroid

ANR: Application Not Responding (Input dispatching timed out)

The main thread was blocked for about 5 seconds (input) or a broadcast/service took too long, so Android showed “App isn’t respon…

AppWidget not updating / Problem loading widgetAndroid

Can't load widget / RemoteViews: Android.view.InflateException in widget

A home-screen widget doesn't update or can't be inflated.

EXC_BAD_ACCESSiOS

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

The app accessed memory it shouldn’t — a dangling pointer, released object, unsafe pointer misuse, a data race, or infinite recur…

NSUnknownKeyExceptioniOS

NSUnknownKeyException: this class is not key value coding-compliant for the key x

A storyboard/XIB has a connection to an outlet or action that no longer exists in the class (renamed or deleted), or the view’s c…

unable to dequeue a cell with identifieriOS

unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard

The table/collection view was asked for a reusable cell identifier that was never registered.

batch response: This repository is over its data quotaGit

batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs

GitHub LFS storage or bandwidth quota is used up.

In-app review dialog not showingAndroid

(behavior) requestReviewFlow succeeds but no dialog appears

The review prompt is rate-limited or not applicable.

NSURLErrorDomain Code=-1009iOS

Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline."

URLSession couldn’t reach the network — the device is offline, the app’s cellular data is disabled, or the simulator lost network…

Gradle sync failed: Connection reset / Could not install Gradle distributionAndroid

Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.7-bin.zip'. Connection reset

Android Studio can't download the Gradle version the wrapper asks for.

LFS file contains pointer text (version https://git-lfs.github.com/spec/v1)Git

version https://git-lfs.github.com/spec/v1 oid sha256:abc size 123456

A file shows LFS pointer text instead of the real content.