Android Studio 3.1运行命令不会重建APK [英] Android studio 3.1 run command does not rebuild the APK

查看:136
本文介绍了Android Studio 3.1运行命令不会重建APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是新的Android Studio版本3.1的非常令人讨厌的方面,我曾经在每次代码更改后启动运行命令,IDE重建了(整个项目和APK),然后将其部署在目标设备上.

This is very annoying aspect of the new android studio version 3.1, I used to launch run command after every code changes, the IDE rebuilds the (whole project & APK) and then deploys it on the target device.

然后,升级到3.1版后,run命令不再重新构建apk,并显示以下错误消息.

Then after upgrading to version 3.1, the run command does not rebuild the apk any more, and displays the following error messages.

android studio 3.1会话"app":安装APK错误

android studio 3.1 Session 'app': Error Installing APK

android studio 3.1安装APK时APK文件错误

android studio 3.1 The APK file Error while Installing APK

因此,每当我进行代码修改时,我都单击重建并运行",如何恢复版本3.0.1的旧行为

so I have click on" rebuild & run" each time I make code modification, how can I restore the old behavior of version 3.0.1

推荐答案

转到Run -> Edit configurations.然后确保您具有Gradle-aware Make选项,如下面的屏幕截图所示.

Go to Run -> Edit configurations. And then make sure you have Gradle-aware Make option like below screenshot.

如果没有,请单击+并从

有关Twitter的更多更新: https://twitter.com/androidstudio/status/981914632892960768

More update in twitter regarding this:https://twitter.com/androidstudio/status/981914632892960768

这篇关于Android Studio 3.1运行命令不会重建APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆