[AC-1377] Latest Android SDK update breaks compilation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-07-18T22:40:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | android |
Reporter | Michael Labieniec |
Assignee | Mauro Parra-Miranda |
Created | 2014-07-01T14:19:59.000+0000 |
Updated | 2016-03-08T07:37:47.000+0000 |
Description
If you update your Android SDK for the ‘L’ preview release, it will bring down an update that causes an error when compiling an Titanium project targeted at Android. On the command line tool it will look something like this:
/usr/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185 throw e; ^ TypeError: Bad argument at ChildProcess.spawn (child_process.js:923:24)
In Titanium Studio, it will complain about a ‘zipalign’ module and say your SDK is outdated. It’s a quick fix, cd into your Android SDK directory root and run:
cp build-tools/19.1.0/zipalign tools/
This will allow titanium app to compile now. After this fix, i had updated my Android SDK again, and once again, Titanium failed to compile and I had to run this command again.
Comments
- Shuo Liang 2014-07-02
- Mauro Parra-Miranda 2014-07-18