Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17048] Build error if Map module in app build with TiSDK prior to 3.3.0

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-08-27T18:25:24.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-3.3.0
ReporterLokesh Choudhary
AssigneeJon Alter
Created2014-05-30T18:20:15.000+0000
Updated2014-10-06T17:47:19.000+0000

Description

Description:

1. If we try to build an app with map module 2.1.5 & SDK 3.2.3.GA it throws the following errors.
[ERROR] :  Failed to package application:
[ERROR] :  
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values/strings.xml:36: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-af/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-am/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ar/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-be/strings.xml:23: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-bg/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ca/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-cs/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-da/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-de/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-el/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-en-rGB/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-en-rIN/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-es/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-es-rUS/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-et-rEE/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-fa/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-fi/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-fr/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-fr-rCA/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-hi/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-hr/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-hu/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-hy-rAM/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-in/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-it/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-iw/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ja/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ka-rGE/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-km-rKH/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ko/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-lo-rLA/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-lt/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-lv/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-mn-rMN/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ms-rMY/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-nb/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-nl/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-pl/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-pt/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-pt-rBR/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-pt-rPT/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ro/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-ru/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-sk/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-sl/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-sr/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-sv/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-sw/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-th/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-tl/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-tr/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-uk/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-vi/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-zh-rCN/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-zh-rHK/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-zh-rTW/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/mapv2ModuleTest/build/android/res/values-zu/strings.xml:28: error: Error parsing XML: unbound prefix
[ERROR] Application Installer abnormal process termination. Process exit value was 1
2. In order to make sdk 3.2.3.GA pick up the right compatible module version which is 2.1.4, change the change the minsdk to 3.3.0 in the manifest file of map module 2.1.5. 2. Use SDK 3.2.3.GA and build the map again.

Actual Result:

1. The 3.2.3 SDK should pick up map module 2.1.4 as the latest compatible when its is rebuilt after changing the minsdk version in the manifest file, but rather it still picks up 2.1.5 & throws errors as below:
[ERROR] :  Found incompatible Titanium Modules:
[ERROR] :     id: ti.map	 version: 2.1.5	 platform: android	 min sdk: undefined
[ERROR] Application Installer abnormal process termination. Process exit value was 1

Expected Result:

1. The SDK should pick up the latest compatible version of the map module build.

Comments

  1. Ingo Muschenetz 2014-06-24

    [~egomez] Do you need to use version 2.1.5 of the map module? We should have downgraded the version shipped with 3.3.0 to 2.1.4.
  2. Eduardo Gomez 2014-06-24

  3. Ingo Muschenetz 2014-06-24

    [~cbarber] Do we need to wait for a fix to this ticket to solve [~egomez]'s issue? Any other workaround?
  4. Chris Barber 2014-06-24

    The error is because ti.map 2.1.5 is not compatible with SDK 3.3.0 or newer. ti.map needs to have a minsdk of 3.3.0 and be rev'd to 2.2. Being that we are not shipping ti.map 2.1.4, people should delete 2.1.5 and only use 2.1.4 until 2.1.5 is fixed. Resolving as invalid.
  5. Eric Merriman 2014-08-25

    Reopening. The root cause of this is the CLI is choosing the "latest" module, and not the "Latest valid" module.
  6. Ingo Muschenetz 2014-08-25

    Is this now a dupe of TIMOB-17545 (or vice-versa)?
  7. Jon Alter 2014-08-27

    Yes, this one is now partially a dupe of TIMOB-17545. There are 2 issues here: 1. The minsdk needs to be bumped to 3.3.0 on the ti.map module. Because ti.map 2.1.5 is not supported by any tisdk below 3.3.0.GA. 2. The CLI is not selecting the latest compatible version of the module correctly TIMOB-17545. I will be bumping the version of ti.map Android to 2.2.0 with a min sdk of 3.3.0 as [~cbarber] suggested. I will then close out this ticket and let TIMOB-17545 take care of the rest.
  8. Jon Alter 2014-08-27

    PR (minsdk to 3.3.0): https://github.com/appcelerator-modules/ti.map/pull/47
  9. Lokesh Choudhary 2014-08-27

    This ticket & TIMOB-17545 are both the same issue. This is not just limited to map module but with other modules as cloudpush as stated in ticket TIMOB-17545. For both these tickets: 1. If we do not specify any module version in studio(Keep it to select latest). CLI will pickup the latest available rather than the latest compatible version, even though studio does not show the incompatible version of the module & the build will fail saying incompatible version of module found.
  10. Olga Romero 2014-10-06

    Tested and verified the ti.map 2.2.0 module does not work with TiSDK prior to 3.3.0 Steps: https://github.com/jonalter/ti.map/blob/584a1fccfa0f0b8425e2c6a5420cd01f7df13234/android/dist/ti.map-android-2.2.0.zip Add this version of ti.map to Modules Choose Titanium SDK 3.2.3.GA (e.g.) Save changes Build for Android Emulator Actual result
        [ERROR] Application Installer abnormal process termination. Process exit value was 1
        [ERROR] :  Found incompatible Titanium Modules:
        [ERROR] :     id: ti.map	 version: 2.2.0	 platform: android	 min sdk: undefined
        

JSON Source