Do you want to terminate the process 'app' - Android Studio

拜拜、爱过 提交于 2021-01-05 13:16:06

问题


Today, I update my Android Studio(4.1.1)

When I changes in my code and click on "Run App" then dialog shows Do you want to terminate the process 'app' and there are 3 options Terminate, Disconnect, Cancel. Can you tell me what are difference in these because if click anyone then app restart.

Which option is best?


回答1:


There is best option. What you have to select depends on what you want to achieve.

This dialog only makes sense if you have already started the app before. If you now run again the app Android Studio want's to know what to do with the existing running app as an there can be only one running instance of an app at a time.

Terminate

This will directly exit the app without saving and data or anything else. The app process will just be terminated.

Disconnect

Close the connection between the debugger in Android Studio and the app as the debuggee. Afterwards the app will continue to run just without attached debugger.

Cancel

Do nothing and just close the dialog



来源:https://stackoverflow.com/questions/64828151/do-you-want-to-terminate-the-process-app-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!