Friday, 23 August 2013

Building on Android Emulator with Titanium

Building on Android Emulator with Titanium

Found lost of fixes, for instance having sdk 2.2/2.1 installed, making
sure the dx, aapt files etc from /platform-tools is inside build-tools
etc.
however still getting an error whilst compiling and no idea what it is
Inside the CLI it says
[INFO] : Running emulator process: python
"/Users/titanium/Library/Application
Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py" "emulator"
"Breast Feeding App" "/Applications/android sdk/sdk"
"/Users/titanium/Apps/reastapp/app" "com.company.nhsbreastfeeding" "2"
"HVGA" "armeabi"
[INFO] : Running build process: python
"/Users/titanium/Library/Application
Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py" "simulator"
"NHS Breast Feeding App" "/Applications/android sdk/sdk"
"/Users/titanium/Apps/breastapp/app" "com.company.nhsbreastfeeding" "2"
"HVGA"
[INFO] logfile = /Users/titanium/Apps/breastapp/app/build.log
[INFO] Building Breast Feeding App for Android ... one moment
[INFO] plugin=/Users/titanium/Library/Application
Support/Titanium/plugins/ti.alloy/1.0/plugin.py
[INFO] Detected compiler plugin: ti.alloy/1.0
[INFO] Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1)
[ERROR] : Emulator process exited with code 1
[INFO] : Project built successfully in 7s 828ms
[INFO] : Emulator not running, exiting...
and then the log file says
Logfile initialized
[INFO] logfile = /Users/titanium/Apps/breastapp/app/build.log
[DEBUG] /Users/titanium/Library/Application
Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py simulator NHS
Breast Feeding App /Applications/android sdk/sdk
/Users/titanium/Apps/breastapp/app com.company.breastfeeding 2 HVGA
[INFO] logfile = /Users/titanium/Apps/breastapp/app/build.log
[DEBUG] /Users/titanium/Library/Application
Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py emulator Breast
Feeding App /Applications/android sdk/sdk
/Users/titanium/Apps/breastapp/app com.company.nhsbreastfeeding 2 HVGA
armeabi
[INFO] Launching Android emulator...one moment
[DEBUG] From: /Applications/android sdk/sdk/tools/emulator
[DEBUG] SDCard: /Users/titanium/.titanium/android2.sdcard
[DEBUG] AVD ID: 2
[DEBUG] AVD Skin: HVGA
[DEBUG] AVD ABI: armeabi
[DEBUG] SDK: /Applications/android sdk/sdk
[INFO] Building Breast Feeding App for Android ... one moment
[INFO] plugin=/Users/titanium/Library/Application
Support/Titanium/plugins/ti.alloy/1.0/plugin.py
[INFO] Detected compiler plugin: ti.alloy/1.0
[INFO] Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1)
[DEBUG] Waiting for device to be ready ...
[TRACE] adb devices returned 0 devices/emulators
[INFO] Creating new Android Virtual Device (2 HVGA)
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/Users/titanium/Library/Application
Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py", line 2569, in
<module>
[ERROR] builder.run_emulator(avd_id, avd_skin, avd_name, avd_abi,
add_args)
[ERROR] File "/Users/titanium/Library/Application
Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py", line 653, in
run_emulator
[ERROR] avd_name = self.create_avd(avd_id, avd_skin, avd_abi)
[ERROR] File "/Users/titanium/Library/Application
Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py", line 615, in
create_avd
[ERROR] inifilec = open(inifile,'r').read()
[ERROR] IOError: [Errno 2] No such file or directory:
'/Users/titanium/.android/avd/titanium_2_HVGA.avd/config.ini'

No comments:

Post a Comment