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

查看:29
本文介绍了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 Session '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

所以每次修改代码都点击rebuild&run,怎么才能恢复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 ->编辑配置.然后确保你有 Gradle-aware Make 选项,如下图所示.

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

如果不是,则单击 + 并从

If not then click + and select from the

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天全站免登陆