Android12 install reports an error the application could not be installed: install_ PARSE_ FAILED_ MANIFEST_ MALFORMED
Solution:
For apps with Android12 as the adaptation platform, all four components that contain an intent-filter need to declare the android:exported attribute, and if the intent-filter contains LAUNCHER, it is best to declare it as android:exported= “true”
For example:
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
The four main components that use intent-filter can be viewed through the Merged Manifest in the manifest file
If you still get the error Installation failed due to: ‘-127’, try adding the following parameter to the manifest file
<permission-group android:name="${applicationId}.andpermission" />
Read More:
- [Solved] Android-android studio apk Install Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [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
- The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
- [Solved] The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS
- [Solved] Manifest merger failed: android:exported needs to be explicitly specified for element <activity#com
- [Solved] Manifest merger failed: Apps targeting Android 12 and higher are required to specify an explicit
- [Solved] OpenCV ERROR: The minSdk version should not be declared in the android manifest file
- Execution failed for task ‘:app:processDebugMainManifest‘.> Manifest merger failed : Apps targeting
- [Solved] Manifest merger failed with multiple errors, see logs
- Remember an android app startup error Error running: Default Activity not found
- [Solved] Android 9.0 APP Install Android 4.4 Error: IllegalArgumentException
- [Solved] Failed to install the following Android SDK packages as some licences have not been accepted
- [Solved] Android Studio Manifest merger failed with multiple errors, see logs
- [Solved] Could not identify launch activity: Default Activity not found Error while Launching activity
- [Solved] Android Error: E/EGL_adreno: tid 3927: eglSurfaceAttrib(1334): error 0x3009 (EGL_BAD_MATCH)
- [Solved] Android Studio APK install Error: INSTALL_FAILED_CONFLICTING_PROVIDER
- Android studio configurate intent-filter and compile error [Solved]