[英]Android Studio Apply Changes asks if I want to Restart App
"Apply Changes" button was working with another project, but now when I click it I get a popup that says: “应用更改”按钮正在与另一个项目一起使用,但是现在当我单击它时,我会看到一个弹出窗口:
"Restart App? The app is already running. Would you like to kill it and restart the session?" “重新启动应用程序?该应用程序已在运行。您想杀死它并重新启动会话吗?”
What causes it to want to restart instead of just applying changes? 是什么导致它想要重新启动而不是仅应用更改?
Here you can find a detailed description of instant run: 在这里,您可以找到即时运行的详细说明:
https://developer.android.com/studio/run/index.html#instant-run https://developer.android.com/studio/run/index.html#instant-run
Normally all changes has to be compiled and republished to the device as new app. 通常,所有更改都必须编译并作为新应用重新发布到设备。 When your App is already running on the device this message is displayed.
当您的应用程序已经在设备上运行时,将显示此消息。 Android Studio has an Instant Run feature, when this is enabled the changes get applied without restart, but this didn't work every time.
Android Studio具有即时运行功能,启用此功能后,更改无需重新启动即可应用,但这并非每次都有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.