Android Question Debug in AVD Emulator

nibbo

Active Member
Licensed User
Longtime User
OK, it was not easy and it took a while, but I finally managed to get the built in AVD emulator to launch a device.

How do I get my project to install onto the emulated device for debugging?
If I just run the project with the emulator running I get the 'No Device' error.
I found a few threads referring to the DesignerDevicePort being set to 5000 which it is; in a file called 'b4xV5.ini' at least.

Do I need to tick a box somewhere?

thanks
 

nibbo

Active Member
Licensed User
Longtime User
Ooops, I did it again! As always, as soon as I post on here I think of the one thing I haven't tried.
In case anyone else find themselves in this situation:
You need to enable developer mode in the emulator (just as you would with a physical device!!!) and allow USB debugging etc...
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
OK, I take it back, further along but still having problems:

Installing file to device. Error
Process timed out.
You can change it under Tools - IDE Options.

I have changed it to 5 minutes but still times out...
Any ideas?

Thanks
 
Last edited:
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Hi Erel,

I am have tried using the default 6 inch device (plus a few variants created in there) and launching it from within b4a->tools->run AVD manager.
I am not even getting the timeout message anymore; just no device found.
The emulator looks like it has loaded but is completely unresponsive.

Not really a b4a problem but grateful for any advice you can offer.

Thanks
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Deleted them all, recreated and set the developer options. Now getting:
adb: failed to install DeliveryConfirmation_DEBUG.apk:
Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

I guess I am missing a library; will do some googling and see where I get to.

Thanks Erel
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Ah, yes I am using SQLCipher..
Are there any other emulators that I can use with b4a that allow debugging?
I have tried BlueStacks in the past which will run the apk's OK but cant find a way to debug with it.
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
You can use any Android emulator you like with B4A. However SQLCipher will only run on real devices as the x86 binaries were removed.
OK, Erel, thanks for clarifying.
I only wanted it so I could code remotely, unfortunately all of my projects use SQLCipher so I guess I will just have to copy sources around.
Thanks for your help.
 
Upvote 0
Top