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]
I faced this error in react native after the gradle was updated. I did nothing except cleaning the project.
cd android
gradle clean
fixed my issue on windows 10.
Working Solution:
Cheers !!!
I had the same trouble when installing AOSP built apks.
I did
mm DEX_PREOPT_DEFAULT=nostripping
and it worked.
I came upon with this problem.
After looking for package_and_sign_apk, I found that google is using apksigner (instead of jarsigner)released after android-build-tools-24.0.3.
And I re-packaged my apk with command line(aapt),and signed with apksigner.
All work well.
Hope to help u some little~
Just fixed this issue on my machine: windows.
Upgraded android studio (gradle upgraded as well as a result).
Had some minor issues with the manifest file as a result of AADT. Project installed and launched after.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With