Android Studio 4.1 does not automatically start the APP (cannot start the application) solution

The Android Studio version has been updated recently, from 3.6 to 4.1 directly.

But I found a problem, that is, after compiling and running the project, sometimes the project app is deployed to the mobile phone, but the app will not start automatically.

Searched the web a little bit and found a solution. It is to turn off the default hot update mode. Proceed as follows:

Settings->Build,Execution,Deployment->Debugger->HotSwap 

Then uncheck the Enable hot-swap agent for Groovy code option.

As shown below:

(Original link: https://blog.csdn.net/yuhaoboy1166/article/details/107044117/ )

I read that the comments say that 4.0.1 still can't solve it, so I don't know what's going on. Anyway, after my 4.1 is set up like this, there is no such problem, and it can be deployed and started at any time as before.

Guess you like

Origin blog.csdn.net/yeziyfx/article/details/109461957