Reason: After Android Studio 3.0, when generating debug apk, the android:testOnly=”true” attribute is automatically added in the application tag of the apk’s manifest file. android:testOnly=” true” This tag was originally used for testing, so packages with this tag cannot be installed in general, and need to be installed in a special way (by adding the -t flag).
Solution:
Method 1: Set: android.injected.testOnly=false in the global configuration gradle.properties file in the project
Method 2: Add -t property: adb install -t app-debug.apk
Read More:
- [Solved] Android-android studio apk Install Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [Solved] Android Studio APK install Error: INSTALL_FAILED_CONFLICTING_PROVIDER
- [Solved] Android Studio 4 Error: The application could not be installed: INSTALL_FAILED_OLDER_SDK
- [Solved] Phone Debug Program Error: The application could not be installed: INSTALL_FAILED_TEST_ONLY
- Android studio version 3.0 import version 2.2.2 error Error:This Gradle plugin requires Studio 3.0 minimum
- [Solved] Failed to apply plugin appears when Android studio imports a project
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- Android Studio: Gradle project sync failed [How to Solve]
- [Solved] Android12 Download Error: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [Solved] Android Studio Compile Error: Execution failed for task ‘:APP_MIDI:lintVitalRelease‘.
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- Android Studio: How to Solve APK error in mobile phone installation
- [Solved] Android Studio Error: Error:Execution failed for task’:app:mergeDebugResources’
- [Solved] Android Studio Error: AAPT: error: file failed to compile
- [Solved] Android Studio Manifest merger failed with multiple errors, see logs
- [Solved] Android9.0 App Install Android4.4 Error: InflateException-You must supply a layout_height attribute.
- Android studio configurate intent-filter and compile error [Solved]
- [Solved] Failed to install the following Android SDK packages as some licences have not been accepted
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- [Solved] Android 9.0 APP Install Android 4.4 Error: IllegalArgumentException