Android Question No Device Found

swabygw

Active Member
Licensed User
Longtime User
While trying to resolve another issue, I reinstalled Android SDK/AVD. But now, after starting up an emulator device, getting "No devices found" error from B4A after compiling. I ran "ADB DEVICES" at command prompt and got "emulator -5554 unauthorized" in list of devices found, but not sure what it means. The emulator config looks like this:



It's Google Play Intel Atom (x86), Android 8.0.0 - API Level 26. The config paths looks like this:


Any ideas how to connect B4A to the emulator?
 

An Schi

Well-Known Member
Licensed User
Aren't you the google maps guy?
Before messing with your whole system - did you make sure that google play service is installed on your phone as well?
 
Upvote 0

swabygw

Active Member
Licensed User
Longtime User
Yep - I was using an emulator which didn't have Google Play Services installed. So, after getting some advice, I updated my Android SDK and switched to a higher-version API emulator (API 26) which does have Google Play Services installed. However, B4A and the higher-version emulator won't connect. When looking at the ADB entry, the emulator shows up as "unauthorized".

Just as a further note, I've discovered that this only occurs with API 26. With a lower API, it works (the "unauthorized" is replaced with "device").
 
Last edited:
Upvote 0

Gianni Sassanelli

Active Member
Licensed User
Longtime User
Hi I have solved this issue

When you create an AVD with GooglePlayStoreImage, the Emulator have USB_Debug = False
if you try to exec this command:
ADB.exe devices the result is
emulator-5554 unauthorized

To solve you must:
1) start the emulator
2) navigate to:
Settings
System
About Emulated Device
Tap 7 times on Build Number
now you are a developper

3) navigate to:
Developper Option
Set USB Debug on TRUE and Authorize your pc for Always

4) Restart the Emulator

Now B4a Work Fine and publish your app!!!




 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…