Titanium Studio and VirtualBox for Android x86

Step by step: 0) Install Appcelerator Titanium Studio. 1) Install Oracle VirtualBox.

2) Download and install Android x86 VM. Instructions here (here) http://habrahabr.ru/post/119931/

3) Run and configure Android x86 (configure means that you must have 2 ethernet adapters, and your Android x86 virtual machine must have an IP address (for example, 192.168.56.101))

3.5) try ping your virtual machine. Everithing should work fine.

4) Launch the Titanium studio and create a new project.

5) Run the command line and from the% Android SDK% / platform-tools / directory do the operation

"adb connect 192.168.56.101". 

it must connect to the virtual machine successfully on port 5555.

Note: IF you haven’t done this, your Titanium studio will record something like this.

  [DEBUG] ...\AndroidSDK\platform-tools\adb.exe start-server [INFO] Titanium SDK version: 2.1.4 (11/09/12 12:46 51f2c64) [DEBUG] Waiting for device to be ready ... [TRACE] adb devices returned 0 devices/emulators [TRACE] adb devices returned 0 devices/emulators [TRACE] adb devices returned 0 devices/emulators 

6) Try installing the Titanium app on the DEVICE. As a platform, I choose Android 4.0.3 [x86]

6.5) A titanium studio will do a lot of work, and it ends:

  [DEBUG] Waiting for device to be ready ... [TRACE] adb devices returned 1 devices/emulators [DEBUG] Device connected... (waited 0 seconds) [DEBUG] waited 0.015000 seconds on emulator to get ready [INFO] Installing application on device 

7) Did Titan successfully find and connect to the device? compiled all the resources and tried to install your application on the device using this:

 "C:\!Development\AndroidSDK\platform-tools\adb.exe -d install -r C:\!Development\Titanium\china\build\android\bin\app.apk" 

But no matter how long you wait, it will not be installed.

What is the problem? What have I done wrong?

+4
source share
3 answers

You must make corrections to the file:

 %HOME%\AppData\Roaming\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py 

according to the screenshots in this article (in Russian).

+3
source

Doesn't that help? It seems that you need to use adbhost http://code.google.com/p/android-on-freerunner/wiki/AndroidDebugBridge

Here is a guide from xda to do this via Wi-Fi. How to connect to Android with ADB via TCP?

0
source

Since the Link in ReinRaus message does not work, I wanted to share with you guys:

Get % APPDATA% / Titanium / mobilesdk / win32 / 3.1.3.GA / android and open builder.py (Note: replace 3.1.3.GA with your version)

On line # 2601 you will find:

 device_args = ['-d'] # We have to be careful here because Windows can't handle an empty argument # on the command line, so if a device serial number is not passed in, but # a debugger_host (the argument after device serial number) _is_ passed in, # to Windows it just looks like a serial number is passed in (the debugger_host # argument shifts left to take over the empty argument.) 

This is the line that forces Install Script to force USBDebug mode, as shown in the log during deployment:

 [DEBUG] XX/sdk/platform-tools/adb.exe -d shell ls /data/app/xx.yyy.zzz*.apk 

Change the arguments to ['- a'] . This will stop forcing USB devices and you should be fine

0
source

All Articles