[AC-3803] Can't build for Android on Windows with 5.3.0.GA SDK
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2016-06-09T05:46:56.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, sdk-5.3.0 |
Reporter | Bitfabrikken - Dan Wulff Kronholm |
Assignee | Shak Hossain |
Created | 2016-06-08T08:14:45.000+0000 |
Updated | 2016-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):
I believe it's more than just Visual Studio. I have both VS 2013 and 2015 installed and still get the error.
Dupe of TIMOB-23480. Fixed in nightly build via temporary workaround, but will be properly fixed by TIMOB-23484.