Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6166] Android: Tooling: tiapp.xml - Bad ti.android.runtime value throws an exception when launching to Android emulator

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2013-08-01T01:04:43.000+0000
Affected Version/sRelease 1.8.0.1, Release 3.0.0
Fix Version/sSprint 2012-03
ComponentsAndroid
Labelscore, module_simulator, qe-S20111114, qe-testadded
ReporterWilson Luu
AssigneeIngo Muschenetz
Created2011-11-14T12:19:31.000+0000
Updated2013-08-13T22:30:28.000+0000

Description

1. Create a new TiMob project 2. Navigate to TiApp Editor 3. Next, click on the tiapp.xml tab 4. Find the ti.android.runtime property and change the value to any value e.g. dsdif, dfj d234, $$^#@#$ etc 5. Save changes 6. Right-click on project and go to Run As > Android Emulator Result: Build exception is thrown. See attachment. Expected: Should be able to launch Android emulator and install to Android device even with bad Android property value Note: Same exception occurs when installing to Galaxy Tab 10.1, sdk 3.1

Comments

  1. Michael Pettiford 2011-12-09

    Tested on Ti Studio 1.0.7.201112080131 
Ti Mob SDK 1.8.0.1.v20111209102124 
OSX Lion Android emulator 2.2 Expected behavior of application not crashing with bad runtime property is shown
  2. Natalie Huynh 2012-01-05

    Open to add label
  3. Natalie Huynh 2012-01-25

    Expected Error when running on emulator: [ERROR] invalid runtime "$$^#@#$o" requested, must be 'v8' or 'rhino' When Running on Device Still get this error: [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.1.v20120124200134/android/builder.py", line 2045, in [ERROR] s.build_and_run(True, avd_id, device_args=device_args) [ERROR] File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.1.v20120124200134/android/builder.py", line 1804, in build_and_run [ERROR] include_all_modules=include_all_ti_modules) [ERROR] File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.1.v20120124200134/android/compiler.py", line 57, in __init__ [ERROR] for runtime_jar in self.depends_map['runtimes'][runtime]: [ERROR] KeyError: u'$$^#@#$o'
  4. Josh Roesslein 2012-01-30

    This should be fixed in both master and 1_8_X branches. Can you please verify against a recent CI build.
  5. Natalie Huynh 2012-02-02

    Tested with 1.9.0.v20120202083136 on Mac 10.6.8
  6. Dustin Hyde 2012-06-21

  7. Dustin Hyde 2012-06-21

    This still occurs in SDK 2.1 when you use this tag:
       <property name="ti.android.runtime">vSFIAJ FISDJFIOS F</property>
       
    SDK: 2.1.0.v20120621132259 OS: Snow Leopard Studio: 2.1.0.201206200844 Devices Tested: Android Emulator 2.3.3
  8. Chris Barber 2013-08-01

    We no longer support the Rhino runtime and only support the v8 runtime, thus ti.android.runtime is no longer needed.
  9. Olga Romero 2013-08-13

    closing as won't fix

JSON Source