简体   繁体   English

Android Studio应用更改询问我是否要重新启动应用

[英]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.

相关问题 Flutter Android 本机代码不保存更改,除非我重新启动 Android 工作室 - Flutter Android native code not saving changes unless I restart Android studio Android Studio - 单元测试模拟应用重启 - Android Studio - Unit Tests Simulate App Restart 当我添加库时,Android Studio应用程序不想编译 - Android studio app does not want compile when I add libs 我想在我的android应用程序中使用大整数,但是每当我应用运算符时,我都会出错? - I want to use big integer in my android app but when ever i apply operators i get error? 我想在应用程序重新启动后将 Cookie 永久存储在我的 Android 应用程序中以使用用于 rest api 调用的 cookie (HttpUrlConnection) - I want to store the Cookie permanently in my Android App after the app restart to use the cookie for rest api call (HttpUrlConnection) Android 要求我将 final 声明为我想在 onclicklistner 函数中多次使用的值 - Android asks me to declare a final to a value I want to use more than once in a function onclicklistner 每当我在java文件中编辑时,我都必须重新启动apache服务器以将这些更改应用到类文件中 - Whenever i edit in java file , i have to restart apache server for apply those changes in class file 我想在Android Studio中制作一个总统审查应用程序,其中包含每个总统的照片,但是我一直在收到OutOfMemoryError - I want to make a president review app in Android Studio that has pictures of every president, but I keep getting OutOfMemoryError 当用户在 Android 中关闭应用程序时,我如何重新启动应用程序 - how can i restart app when user close the app in Android 我想在android studio中更改文本颜色 - I want to change the text Color in android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM