AVD Manager Error: "Unable to locate adb"
Android Studio - launch emulator AVD - "unable to locate adb"
I have answered to your question already, kindly visit the above link to read more.
Solution:
Click on the project folder, tap the dropdown icon just beside it.
Now Navigate to the path below.
android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
Now Click on the file GeneratedPluginRegistrant.java to open it.
Once it is open, At the Top you will notice a bar that says 'Module SDK is not defined',
Now right against it, you will also see a hyper-text named 'Setup SDK', Just Click on it.
That will open a Pop-up Box with the title 'Select project SDK'.
Now select the Android Platform API and then click OK. After that being done Restart your IDE.
Your Problem will be Solved. And you will also notice that Emulator Opens up way faster than before.
NOTE:
The Above Steps has to be performed with every new flutter project.
Sruthi G
Updated on December 16, 2022Comments
-
Sruthi G over 1 year
I tried to install flutter (including android studio and emulator) on Windows OS (also tried Linux dist. (Ubuntu)). I keep getting the same error when I try running the emulator: "Unable to locate adb". However, I checked and the adb file is located in platform-tools and the path is referenced correctly (to my knowledge). Also, even though the error pops up, the emulator still loads. I've even tried running the test code (despite the error), it gets stuck on the following line: "Running Gradle task 'assembleDebug'...". I have checked environment variable path/made sure paths are set correctly. I have tried reinstalling the software and the platform-tools folder, as well as any other suggestion I've seen online. I can provide more info if needed. Any help would be greatly appreciated!
Software Version Info: Windows 10 Home, Ubuntu 20.04, Flutter 1.17.4, Dart 2.8.4, Android Studio 4.0
-
Sruthi G almost 4 years@MilanPoudel Unfortunately, I have already tried everything that was mentioned in that conversation chain, but nothing worked for me.
-
-
Milan Poudel almost 4 yearsI think you should check the answers from this similar question.enter link description here
-
Sleewok over 2 yearsI just tried this, and it did not work for me either. I still get the error