Getting adb error while trying to build and run for android target

After installing Android SDK and NDK and setting lime and openfl when I use the command

openfl test android

I get this error:

Performing Push Install
adb: error: failed to get feature set: no devices/emulators found

Android emulator is already installed as I can see in SDK manager in Android Studio app.
How to overcome this error?

Never mind.
I can see the apk has been built deep inside the export folder. That will do.

But I hoped it could launch the Emulator installed by Android Studio in SDK manager. But it does not.

I think you have to add -emulator to your run or test command. Without it, I think it should run into your usb connected device.

Thanks I will try that.