Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the package appears to be corrupt

After update android studio 2.3.3 to 3.0, after updating facing new problem apk is not install into mobile after share apk through share or any sharing app. but install in emulator. also try below things

Try disable instant run. try clean and rebulid project.

like image 826
Neil Avatar asked Oct 30 '17 05:10

Neil


People also ask

What is the meaning of the package appears to be corrupt?

This is because your previous aplication was build with a higher version of sdk. If your new app was build with 22 and your installed application was build with 23, you will get The package appears to be corrupt error on update.

How do I fix package invalid?

If you're trying to download the app through Google Play Store and the error message "package file is invalid" appears, please do the following: Open your device's main Settings app. Touch Apps or Application manager (depending on your device, this may be different). Touch Google Play Store > Clear cache > Clear data.


1 Answers

You can follow The package appears to be corrupted.

./gradlew clean
./gradlew assembleDevDebug

If same problem then downgrade tools.build:gradle version. I assume its a bug.

 // classpath 'com.android.tools.build:gradle:3.0.0'
    classpath 'com.android.tools.build:gradle:2.3.3'

FYI

Build your project in Release/Signed mode. This problem will overcome. Only BUILD mode creating this issue.

like image 159
IntelliJ Amiya Avatar answered Oct 29 '22 14:10

IntelliJ Amiya