简体   繁体   English

Android Studio每次都会重新安装APK

[英]Android Studio is re installing APK every time

After I updated my android studio and gradle, It is installing apk everytime even I put new empty line or log only in java. 更新我的android studio和gradle之后,即使我放了新的空行或仅在Java中登录,它也会每次都安装apk。

I used to be not like this. 我以前不是这样的。 It just updated the apk and relaunch the activity. 它只是更新了apk并重新启动了活动。

Android studio 2.3.1, gradle: 2.3.1 Android Studio 2.3.1,gradle:2.3.1

Is there any option or setting I have to set? 我必须设置任何选项或设置吗?

Thank you in advance. 先感谢您。

There are some cases instant run doesn't work like when you use the jack compiler (we won't be using it soon and Java 8 will be officially supported!). 在某些情况下, 即时运行无法像使用jack编译器时那样起作用(我们不会很快使用它,并且将正式支持Java 8!)。

Another reason is when you try to run the app on an emulator with a software version that is not installed on your computer such as having platform version 24 and running on a 25 version emulator. 另一个原因是,当您尝试在模拟器上运行该应用程序时,该模拟器所使用的软件版本尚未安装在计算机上,例如平台版本为24且在25版本的模拟器上运行。

Hope this helps :) 希望这可以帮助 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM