I simply wrote a program today and found that it could not run all the time, prompting that the installation failed on the physical device
INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Installation failed due to: ‘null’
After checking on the Internet, most of the brothers said that it was a problem with the test mark, so just add it
android:testOnly="false"
But there are still problems after trying
Another brother said that this problem is related to the manifest file. It may be that there is a problem with the configuration of the manifest file. Therefore, I checked it from here. However, I was also very curious about how a hello world program has a configuration problem. I didn’t see any exceptions in the xml. I went to the apk generation directory to directly try to install it:
adb install -r -d a.apk
here I saw the error messages:
adb: failed to install app-debug.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl631790294.tmp/base.apk (at Binary XML file line #20): com.leonard.goot.MainActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]
Find the problem, because the activity does not have the export property caused by the modification can be installed after debugging, Done!
Read More:
- [Solved] Android12 Download Error: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [Solved] Android Studio APK install Error: INSTALL_FAILED_CONFLICTING_PROVIDER
- [Solved] Android Studio 3.0 Error: Error: INSTALL_FAILED_TEST_ONLY
- [Solved] Android Studio Manifest merger failed with multiple errors, see logs
- [Solved] Android Studio 4 Error: The application could not be installed: INSTALL_FAILED_OLDER_SDK
- [Solved] Android9.0 App Install Android4.4 Error: InflateException-You must supply a layout_height attribute.
- [Solved] Android Studio Compile Error: Invalid main APK outputs : EarlySyncBuildOutput
- [Solved] Android 9.0 APP Install Android 4.4 Error: IllegalArgumentException
- [Solved] Appium Install Error: Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variab
- Android Studio: How to Solve APK error in mobile phone installation
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- [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] Failed to install the following Android SDK packages as some licences have not been accepted
- Apk Failed to install Error: [install\u failed\verification\u failure]
- APK Install Error: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
- [Solved] Android Studio Generate APK Error: error_prone_annotations.jar (com.google.errorprone:error)
- [Solved] Windows Android Studio Cannot Start Error: Internal error. Please refer to https://code.google.com/p/android/issue