Apk could not be installed on Android N with the error INSTALL_FAILED_INVALID_APK

I tried to install apk with adb installation, but when I tried to install it, I got the following error:

Failure [INSTALL_FAILED_INVALID_APK: package cannot be installed in /data/app/conform.src.com.conform-1: package / data / app / conform.src.com.conform-1 / base.apk code missing]

+4
source share
2 answers

I had the same problem when installing AOSP built-in apks.

I did

mm DEX_PREOPT_DEFAULT = nostripping

and he worked.

+5
source

I ran into this problem.

package_and_sign_apk, , google apksigner ( jarsigner), android-build-tools-24.0.3.

apk (aapt) apksigner.

.

~

+1

Source: https://habr.com/ru/post/1656827/


All Articles