Android Question Debugging a program on the Genymotion emulator

Sergey_New

Well-Known Member
Licensed User
Longtime User
Why doesn't debugging work on the emulator when there's no internet connection?
Is this how it should be?
 

teddybear

Well-Known Member
Licensed User
Check the settings of the VirtualBox network adapter for Genymotion emulator, it should be Bridged Adpater or Host-only Adpater.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
Please tell me where to find the VirtualBox network adapter settings for the Genymotion emulator.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Please tell me where to find the VirtualBox network adapter settings for the Genymotion emulator.
This is the tutorial
屏幕截图_23-6-2026_0150_www.youtube.com.jpeg
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Thanks for the video! Unfortunately, it's not translated into Russian. If you don't mind, could you describe the steps to take without internet access and what settings to select?
I have uploaded the picture for the tutorial at post#4.
1,Launch the Oracle VirtualBox Application.
2.Locate the Genymotion phone virtual machine, then right-click it and select Settings

微信图片_2026-06-23_134821_271.png
 
Upvote 0

teddybear

Well-Known Member
Licensed User
There are two ways to launch the emulator.
Double click in the Oracle VirtualBox or click the Genymotion emulator App

Check why there are invalid settings on your virtual machine?

1.png

 
Upvote 0

teddybear

Well-Known Member
Licensed User
I don't think that will help. When using the internet, everything works very quickly in debug and release modes.
Try this without the Internet. after the Genymotion emulator running
B4X:
adb shell settings put global captive_portal_http_url  http://127.0.0.1
adb shell settings put global captive_portal_https_url https://127.0.0.1
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
Try this without the Internet
Where can I find these settings?
The most puzzling thing is, why do you need the internet to debug on the emulator?
All the libraries and necessary files are already on your computer. What else do you need? The debugger needs to work offline.
 
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
These commands fail 'adb' cannot be found.
 
Last edited:
Upvote 0
Top