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.
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.
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.
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.
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