Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to initialize the device agent

I am trying to run via android studio a app on my mobile that is connected via USB but I cannot see my mobile display in android studio I get the error Failed to initialize the device agent.

enter image description here

Why do I get t his error?

like image 476
Andrei CCL Avatar asked Aug 14 '26 22:08

Andrei CCL


1 Answers

Please make sure you have enabled the device streaming from android stuido setting.

To enable device mirroring.

  1. Go to studio settings.
  2. From the side bar select "Experimental".
  3. Check the first option "Enable device streaming in Android Stduio".

To Fix "Failed to initialize the device agent" Error.

  1. Disconnect your device
  2. Go to your device "Developers Options".
  3. Disable USB debugging and enable it again.
  4. Connect your device again.
like image 98
inabdev Avatar answered Aug 17 '26 11:08

inabdev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!