Skip to content Skip to sidebar Skip to footer

Device Emulator-5554 Is Not Authorized. (android)

I have run into similar problem like this: [emulator-5554 unauthorized for adb devices [1] Basically, I am trying to do some flutter programming on an Android Virtual Device with m

Solution 1:

I found the solution guys !! I was stuck but it's actually quite simple !

So, I got the problem with the Pixels 2 and 2 XL API 28 (Pie) and here's what to do :

  • Set and run the device normally

  • Turn on the developer features : go to the settings, then 'System', 'About Emulated Device', tap 5 times on 'Build Number'

  • Go back, reveal the advanced options, then go to 'Developer Options'

  • Make sure 'USB debugging' is on

  • Find 'default USB configuration'

  • Click on it, it will open a menu, then select 'File Transfer' instead of 'No data transfer'

  • I think it's good but you can also click inside your notifications on 'Virtual SD card' and set it for transferring photos and media, in order to be sure

  • Open your PowerShell (or cmd, or what you want) with the emulator still opened and check if it's getting recognized with 'flutter doctor' or 'flutter devices'

  • Go to your project folder with 'cd [your folder's path]

  • Type 'flutter run' to launch your app in the emulator

It should work! It did for me, I think the problem comes from the USB default configuration. I hope it helped, have a nice programming session !

Solution 2:

Solved it by creating a Nexus emulator instead of a Pixel 2

Solution 3:

I don't know if this is really the solution for it.

Today I have tried creating a different AVD with a different image (Same API level). The new AVD works!

I wonder if it is the case that the old image was buggy or whatsoever - even though that was an official Google Play image.

My new image was not official, I guess, but it works and connects without problem.

Solution 4:

I tried all above proposed solutions and others but none worked with me. But the following solved it:

The problem was in '.android' files

Delete the entire '.android' folder and re-create the emulator again using AVD manager and the folder will be re-created again in the same location.

The default path of '.android' folder is 'C:\Users\***\.android' unless you changed it.

Solution 5:

I had experienced the same problem and tried to fix it in many ways. For my case, I could find a simple solution as doing Android studio updates. Here is the information for updates.

IDE and Plugin Updates: The following components are ready to update: Android Emulator, Android SDK Platform-Tools

Post a Comment for "Device Emulator-5554 Is Not Authorized. (android)"