Reputation: 272
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?
Upvotes: 6
Views: 9076
Reputation: 46
Command , (Setting or Preference) Version Controll > Confirmation > "when files are created" add or delete option check!!
Upvotes: 2
Reputation: 11
I was having the same problem. Here is the simple solution that worked for me. Check Remember, don't ask again
then press Disconnects
. Lastly close your emulator and run the app again.
Upvotes: 1
Reputation: 42799
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.
This will directly exit the app without saving and data or anything else. The app process will just be terminated.
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.
Do nothing and just close the dialog
Upvotes: 6