Error map

Attribute application@label value=(@string/app_name) is also present at [lib] value=(Lib). Suggestion: add 'tools:rep... Manifest merger failed : Attribute application@label value=(@string/app_name) from AndroidManifest.xml:12:9-41 is also present at [com.example:lib:1.0] AndroidManifest.xml:8:9-30 value=(Lib).

Android · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (9). 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.

Attribute application@label value=(@string/app_name) is also present at [lib] value=(Lib). Suggestion: add 'tools:rep... — Manifest merger failed : Attribute application@label value=(@string/app_name) from AndroidManifest.xml:12:9-41 is also present at [com.example:lib:1.0] AndroidManifest.xml:8:9-30 value=(Lib). (Android)Attribute a…Manifest merger failed — Manifest merger failed: android:exported needs to be explicitly specified (Android)Manifest merger fai…ActivityNotFoundException — ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml? (Android)ActivityNotFoundExc…AdMob: ERROR_CODE_INTERNAL_ERROR (0) — Ad failed to load : 0 / ERROR_CODE_INTERNAL_ERROR (Android)AdMob: ERROR_CODE_I…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…MissingForegroundServiceTypeException — android.app.MissingForegroundServiceTypeException: Starting FGS without a type (Android)MissingForegroundSe…Package not visible: getPackageInfo throws NameNotFoundException on Android 11 — android.content.pm.PackageManager$NameNotFoundException: com.whatsapp (Android)Package not visible…uses-sdk:minSdkVersion cannot be smaller than version declared in library — uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library (Android)uses-sdk:minSdkVers…Class android.support.v4 not found after AndroidX — java.lang.NoClassDefFoundError: android/support/v4/app/Fragment (Android)Class android.suppo…Could not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveDuplicate class — Duplicate class X found in modules A and B (Android)Duplicate classGradle wrapper main class — Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain (Java)Gradle wrapper main…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…adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version …Default FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp…AdMob: Ad failed to load: ERROR_CODE_NO_FILL (3) — Ad failed to load : 3 / ERROR_CODE_NO_FILL (Android)AdMob: Ad failed to…App Tracking Transparency prompt not appearing — (behavior) ATTrackingManager.requestTrackingAuthorization never shows the dialog (iOS)App Tracking Transp…INSTALL_FAILED_NO_MATCHING_ABIS — INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries (Android)INSTALL_FAILED_NO_M…INSTALL_FAILED_OLDER_SDK — INSTALL_FAILED_OLDER_SDK / INSTALL_FAILED_DEPRECATED_SDK_VERSION (Android)INSTALL_FAILED_OLDE…The emulator process for AVD was killed — Android Emulator: The emulator process for AVD x has terminated / was killed (hypervisor not available) (Android)The emulator proces…INSTALL_FAILED_UPDATE_INCOMPATIBLE — Android: INSTALL_FAILED_UPDATE_INCOMPATIBLE (Android)INSTALL_FAILED_UPDA…INSTALL_PARSE_FAILED_NO_CERTIFICATES — INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid (Android)INSTALL_PARSE_FAILE…Error: Could not find the correct Provider — Flutter: Error: Could not find the correct Provider<CartModel> above this Consumer<CartModel> Widget (Flutter / Dart)Error: Could not fi…startForeground not called — Context.startForegroundService() did not then call Service.startForeground() / ForegroundServiceStartNotAllowedException (Android)startForeground not…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)IllegalStateExcepti…SecurityException: Neither ACCESS_COARSE_LOCATION nor ACCESS_FINE_LOCATION permission is granted — java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations (Android)SecurityException: …NonUniqueResultException — IncorrectResultSizeDataAccessException: query did not return a unique result: 2 (Java)NonUniqueResultExce…must target at least API level — Play Console: Your app currently targets API level 33 and must target at least API level 34 (Android)must target at leas…Play Console: Your app needs a permissions declaration (SMS / background location) — Your app uses permissions that require a declaration form (Android)Play Console: Your …Dependency requires compileSdk — Dependency 'androidx.x:1.y' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs (Android)Dependency requires…Launcher activity not found / Default Activity not found — Error running 'app': Default Activity not found (Android)Launcher activity n…Deep link opens the browser instead of the app — (behavior) tapping a URL does not open the app (Android)Deep link opens the…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …Error building the app bundle — Execution failed for task ':app:bundleRelease'. Error while executing bundletool (Android)Error building the …Jetifier: Failed to transform artifact — Failed to transform artifact 'xyz.aar' to match attributes ... Jetifier (Android)Jetifier: Failed to…

Directly related (9)

Manifest merger failedAndroid

Manifest merger failed: android:exported needs to be explicitly specified

Targeting Android 12 (API 31)+ requires `android:exported` on every activity, service or receiver that has an intent-filter.

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.

AdMob: ERROR_CODE_INTERNAL_ERROR (0)Android

Ad failed to load : 0 / ERROR_CODE_INTERNAL_ERROR

AdMob hit an internal error, often because the app or ad unit isn't configured correctly.

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.

MissingForegroundServiceTypeExceptionAndroid

android.app.MissingForegroundServiceTypeException: Starting FGS without a type

On Android 14 every foreground service must declare a type.

Package not visible: getPackageInfo throws NameNotFoundException on Android 11Android

android.content.pm.PackageManager$NameNotFoundException: com.whatsapp

Android 11 hides other apps from yours unless you declare them.

uses-sdk:minSdkVersion cannot be smaller than version declared in libraryAndroid

uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library

A dependency needs a higher minSdk than the app declares.

Class android.support.v4 not found after AndroidXAndroid

java.lang.NoClassDefFoundError: android/support/v4/app/Fragment

A library still uses old android.support classes that no longer exist in an AndroidX app.

Two steps away (27)

Could not resolveAndroid

Gradle: Could not resolve all files for configuration / Could not resolve dependency

Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.

Duplicate classAndroid

Duplicate class X found in modules A and B

Two dependencies ship the same class — typically old Android Support libraries mixed with AndroidX, or Kotlin stdlib-jdk7/jdk8 ve…

Gradle wrapper main classJava

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

The Gradle wrapper JAR (gradle/wrapper/gradle-wrapper.jar) is missing or corrupt.

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.

adb server version doesn't matchAndroid

adb server version (41) doesn't match this client (39); killing...

Two different adb binaries are running — e.g. Android Studio’s SDK adb and another one on PATH (Homebrew, Genymotion, older SDK).

Default FirebaseApp is not initializedAndroid

IllegalStateException: Default FirebaseApp is not initialized in this process

Firebase couldn’t initialise because google-services.json or the Google Services Gradle plugin is missing/misapplied, or initiali…

AdMob: Ad failed to load: ERROR_CODE_NO_FILL (3)Android

Ad failed to load : 3 / ERROR_CODE_NO_FILL

AdMob had no ad to serve this request.

App Tracking Transparency prompt not appearingiOS

(behavior) ATTrackingManager.requestTrackingAuthorization never shows the dialog

The ATT prompt isn't shown to users.

INSTALL_FAILED_NO_MATCHING_ABISAndroid

INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries

The APK contains native (.so) libraries only for CPU architectures the device doesn’t support — e.g. x86 emulator with arm-only l…

INSTALL_FAILED_OLDER_SDKAndroid

INSTALL_FAILED_OLDER_SDK / INSTALL_FAILED_DEPRECATED_SDK_VERSION

The device’s Android version is lower than the app’s minSdk (OLDER_SDK), or the app’s targetSdk is too old for this Android versi…

The emulator process for AVD was killedAndroid

Android Emulator: The emulator process for AVD x has terminated / was killed (hypervisor not available)

The Android Emulator crashed or couldn’t start — usually missing hardware acceleration, low disk/RAM, or GPU driver problems.

INSTALL_FAILED_UPDATE_INCOMPATIBLEAndroid

Android: INSTALL_FAILED_UPDATE_INCOMPATIBLE

An app with the same package name but a different signing key is already installed on the device.

INSTALL_PARSE_FAILED_NO_CERTIFICATESAndroid

INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid

The APK isn’t signed (or the signature is invalid for this Android version), so it can’t be installed.

Error: Could not find the correct ProviderFlutter / Dart

Flutter: Error: Could not find the correct Provider<CartModel> above this Consumer<CartModel> Widget

A widget asked Provider for an object that is not above it in the widget tree.

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…

IllegalStateException: Not allowed to start service Intent (app is in background)Android

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

Since Android 8 background apps can't freely start services.

SecurityException: Neither ACCESS_COARSE_LOCATION nor ACCESS_FINE_LOCATION permission is grantedAndroid

java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations

Location was requested without the right runtime permission.

NonUniqueResultExceptionJava

IncorrectResultSizeDataAccessException: query did not return a unique result: 2

A query expected one row but found several.

must target at least API levelAndroid

Play Console: Your app currently targets API level 33 and must target at least API level 34

Google Play requires new apps and updates to target a recent Android API level (raised every year).

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.

Dependency requires compileSdkAndroid

Dependency 'androidx.x:1.y' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs

A library needs a higher compileSdk than your module uses (checkAarMetadata task).

Launcher activity not found / Default Activity not foundAndroid

Error running 'app': Default Activity not found

Android Studio can't find an Activity with the LAUNCHER intent filter.

Deep link opens the browser instead of the appAndroid

(behavior) tapping a URL does not open the app

The intent filter or link verification doesn't match the URL.

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…

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.

Jetifier: Failed to transform artifactAndroid

Failed to transform artifact 'xyz.aar' to match attributes ... Jetifier

The Jetifier tool could not rewrite an old support-library dependency to AndroidX.