Android studio 3.1 run team does not restore APK

This is a very unpleasant aspect of the new version of Android version 3.1, I used to run the launch command after changing each code, the IDE rebuilds (the whole project and the APK), and then deploys it to the target device.

Then, after upgrading to version 3.1, the start command no longer rebuilds apk and displays the following error messages.

android studio 3.1 Session 'app': APK installation error

Android version 3.1 APK file error when installing APK

so I press the rebuild and run button every time I make a code modification, how can I restore the old version 3.0.1 behavior

+13
source share
2 answers

Go to Run -> Edit configurations . And then make sure you have the Gradle-aware Make option, as shown below.

enter image description here

If not, press + and select

Read more about this on twitter: https://twitter.com/androidstudio/status/981914632892960768

+38
source

disable the instant start option. Open Settings from File> Settings Go to Build, Run, Deploy> Instant Launch Uncheck Enable Instant Launch

-1
source

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


All Articles