TexD
TexD

Reputation: 272

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

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?

Dialog Picture: Do you want to terminate the process 'app'

Upvotes: 6

Views: 9076

Answers (3)

chakangost
chakangost

Reputation: 46

Command , (Setting or Preference) Version Controll > Confirmation > "when files are created" add or delete option check!!

Upvotes: 2

Majura1
Majura1

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

Robert
Robert

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.

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

Upvotes: 6

Related Questions