When I try to install my apk onto my Android Virtual Device in Android Studio with adb install my_application-aligned.apk
, I get the following error: Performing Streamed Install adb: failed to install my_application-aligned.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl530526663.tmp/base.apk: AndroidManifest.xml]
Could this be because the apk is corrupted? I can provide my Android Manifest file if that would help. I generated the APK by following this tutorial: https://medium.com/@_sathishshan/decompile-and-recompile-android-apk-7d375e1bca83 . Following this tutorial, I first downloaded an APK file from the internet. Then, I decompiled the APK and added some additional files to the application. Next, I recompiled the APK, and generated a new APK file. This new APK file is my_application-aligned.apk
. Thanks!
CodePudding user response:
check minSdkVersion, it's maybe too big.
or clear and rebuild project with androidstuidio.
CodePudding user response:
Uninstall old app from device and re run this app to device again.