Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3803] Can't build for Android on Windows with 5.3.0.GA SDK

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2016-06-09T05:46:56.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, sdk-5.3.0
ReporterBitfabrikken - Dan Wulff Kronholm
AssigneeShak Hossain
Created2016-06-08T08:14:45.000+0000
Updated2016-06-09T05:46:56.000+0000

Description

Building for Android seems impossible on my Windows system, but not on my Mac. I've temporarily fixed it by editing 3 files in the SDK, as described in the end of this wall of text - it seems to have to do with Visual Studio and the Windows SDK, which I do not have installed. Also I can't in this JIRA ticket system select Appc Studio version above 4.5.0(!) Steps to reproduce: 1. Create blank, classic project 2. Build it via the Play icon in the top left corner of Appcelerator Studio 3. Observe the following errors: 2016-06-08T07:19:23.875Z | DEBUG | Titanium Downloads Last Checked: 1465367918028 2016-06-08T07:19:24.156Z | TRACE | No project alloy hook; skipping update to 1.0.0 2016-06-08T07:19:26.203Z | ERROR | An uncaught exception was thrown! Cannot read property 'options' of undefined 2016-06-08T07:19:26.204Z | ERROR | Cannot read property 'options' of undefined 2016-06-08T07:19:26.205Z | TRACE | TypeError: Cannot read property 'options' of undefined at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.GA\node_modules\titanium-sdk\lib\titanium.js:65:11 at Array.forEach (native) at set (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.GA\node_modules\titanium-sdk\lib\titanium.js:64:24) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.GA\node_modules\titanium-sdk\lib\titanium.js:100:6 at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.GA\mobileweb\cli\commands\_build.js:105:4 at CLI._fireHookCallback (c:\Users\Dan\.appcelerator\install\5.3.0\package\node_modules\titanium\lib\hook.js:267:3) at c:\Users\Dan\.appcelerator\install\5.3.0\package\node_modules\titanium\lib\hook.js:248:10 at c:\Users\Dan\.appcelerator\install\5.3.0\package\node_modules\titanium\node_modules\async\lib\async.js:697:13 at c:\Users\Dan\.appcelerator\install\5.3.0\package\node_modules\titanium\node_modules\async\lib\async.js:52:16 at c:\Users\Dan\.appcelerator\install\5.3.0\package\node_modules\titanium\node_modules\async\lib\async.js:267:21 How to fix (I couldn't find this on Github, so had to use another tool for diff'ing):

mobilesdk\win32\5.3.0.GA\node_modules\titanium-sdk\lib\titanium.js: https://www.diffchecker.com/owvwlbd3

mobilesdk\win32\5.3.0.GA\windows\cli\commands\_build\config\vstarget.js: https://www.diffchecker.com/r2wgxkew

mobilesdk\win32\5.3.0.GA\windows\cli\commands\_build\config\wpSDK.js: https://www.diffchecker.com/zdvf9qyn

Comments

  1. Nazmus Salahin 2016-06-09

  2. Bitfabrikken - Dan Wulff Kronholm 2016-06-09

    I believe it's more than just Visual Studio. I have both VS 2013 and 2015 installed and still get the error.
  3. Chris Barber 2016-06-09

    Dupe of TIMOB-23480. Fixed in nightly build via temporary workaround, but will be properly fixed by TIMOB-23484.

JSON Source