Genymotion USB Connection

504 views
Skip to first unread message

McG

unread,
Nov 3, 2018, 1:04:01 PM11/3/18
to MIT App Inventor Forum
Testing using emulator on Genymotion.  Reason being that I cannot get the built-in emulator to work on most of my computers at work (I'm a teacher).
Currently using a mac at home - will use PCs at work.
Anyway, App Inventor emulator works fine on my machine.  However, if I load up Genymotion emulator and then try to connect via USB (or emulator) it tells me to make sure that AI Starter is running.  So no connection.

Connection test page tells me that Ai starter is running and phone is NOT connected via USB.

Any ideas?  

TimAI2

unread,
Nov 3, 2018, 1:13:40 PM11/3/18
to MIT App Inventor Forum
Not sure that is the right way.

Make sure that the genymotion virtual machine is on the same network as your host PC (default for virtualbox machines is its own network). There is an option for this in the Genymotion settings for the virtual machine

Then just run Companion on AI2 to get the code, run Companion App on the genymotion device. The Companion App tells you its IP so you can check this is on the correct network

(This is how I do it on my Linux machine)

McG

unread,
Nov 3, 2018, 8:53:31 PM11/3/18
to MIT App Inventor Forum
Thanks for the reply Tim.
The page listed here in App Inventor suggests using USB for connection for live testing.

Anyway, I've clearly got something not working correctly (hence the fail at step 3 when connecting Genymotion to App Inventor via USB.
Not sure about checking the networks are matching (host PC, Genymotion device and Virtual box),  

Abraham Getzler

unread,
Nov 4, 2018, 1:37:35 PM11/4/18
to MIT App Inventor Forum

McG

unread,
Nov 4, 2018, 2:20:07 PM11/4/18
to MIT App Inventor Forum
Abraham, I took the ADB suggested in that article and copied it into my Commands for App Inventor folder and then tried from there.  Gave me the same result (USB not connected, although it gave me a couple of seconds of hoping it would work).
I ignored the option to use the custom android SDK tools as I could see no way to retrieve such a file as shown.

Got the advice from another post that you uploaded.

I now fancy getting this Genymotion working and using in school with all pupils.  Sooo frustrating when things don't go as expected!

Abraham Getzler

unread,
Nov 4, 2018, 4:50:19 PM11/4/18
to MIT App Inventor Forum
See the Companion and Emulator section of FAQ
for various posts on the Companion and Emulator.

ABG

Abraham Getzler

unread,
Nov 4, 2018, 5:11:45 PM11/4/18
to MIT App Inventor Forum
In the Windows environment, the Windows Task  Manager is a big help
debugging Companion and Emulator connection problems.

Watch out for missing or duplicate aistarter.exe or adb.exe tasks.

You should have exactly one of each.

ABG

Reply all
Reply to author
Forward
0 new messages