choi15ho
choi15ho

Reputation: 21

Error when running the emulator on Flutter in Android Studio

When running the emulator on Flutter in Android Studio adb.exe exists in AppData\Local\Android\Sdk\platform-tools, but I get an error saying "Unable to locate adb."

Also, pressing the "Open Android Emulator: ~" button causes the following error:

Error Opening Emulator

emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature. Please use -read-only flag to enable this feature. .

What should I do?enter image description here

Upvotes: 2

Views: 1853

Answers (2)

user3486184
user3486184

Reputation: 2375

I ran into this while running Cygwin on Windows with a repo I'd cloned using the Cygwin git. It looks as if Flutter launches things differently from regular Android Studio.

I was able to solve this with:

cd \users\(me)\AppData\Local\Android\Sdk\platform-tools
chmod -R u+x *

(That's the Cygwin /usr/bin/chmod on my path.) After that, adb started in a Flutter project.

Upvotes: 0

defnotadi
defnotadi

Reputation: 61

That alert comes up very often but the emulator starts up nevertheless. If the emulator doesn't start, click the down button(next to the play button for your emulator in the AVD manager) and select stop/disable to stop the process and try again.

Upvotes: 1

Related Questions