Search code examples
installationtitaniumvirtualboxandroid-x86

Titanium Studio and VirtualBox Android x86


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

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

3) Run and configure Android x86 (configure means that you should have 2 ethernet adapters and your Android x86 Virtual Machine(VM) must have an IP (for example 192.168.56.101))

3.5) try to ping your VM. Everithing should works just fine.

4) Run you Titanium studio and create an new project.

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

"adb connect  192.168.56.101". 

it has to connect to VM successfully on port 5555.

Note: IF you not did this your Titanium Studio will log 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 to install your Titanium Application on the DEVICE. As a platform i select Android 4.0.3 [x86]

6.5) Titanium studio would do a lot of work and it ends with:

    [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) Titanium successfully found the and have connected to the device? compiled all of the resources and trying to install your application to the device with this:

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

But there is not matter how much time you will wait it won't install.

What is the problem? What i did wrong?


Solution

  • You have to 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 (Russian).