Apk failing to install on Android N with INSTALL_FAILED_INVALID_APK error

shreya_s7 picture shreya_s7 · Oct 5, 2016 · Viewed 10.3k times · Source

I was trying to install apk with adb install but when I tried to install it I got the following error,

Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/conform.src.com.conform-1: Package /data/app/conform.src.com.conform-1/base.apk code is missing]

Answer

Shigeru Moriwake picture Shigeru Moriwake · Jan 10, 2017

I had the same trouble when installing AOSP built apks.

I did

mm DEX_PREOPT_DEFAULT=nostripping

and it worked.