[TIMOB-13277] Android: Module Packaging fails with exec returned 2
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2013-04-01T22:41:27.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 07 Core, 2013 Sprint 07 |
| Components | Android |
| Labels | qe-3.1.0, triage |
| Reporter | Dustin Hyde |
| Assignee | Allen Yeung |
| Created | 2013-03-28T22:55:35.000+0000 |
| Updated | 2017-03-21T21:36:41.000+0000 |
Description
Android Module Packaging fails with exec returned 2.
Logs and screenshots attached.
Test Steps:
1. Create Android Module.
2. Package Android Module.
Test Result:
Error.
Attachments
| File | Date | Size |
|---|---|---|
| _bash_profile | 2013-03-28T23:00:43.000+0000 | 222 |
| android studio preferences.png | 2013-03-28T22:55:35.000+0000 | 135904 |
| build.properties | 2013-03-28T22:55:35.000+0000 | 277 |
| studio ant console.txt | 2013-03-28T22:55:35.000+0000 | 1431 |
| studio console error.txt | 2013-03-28T22:55:35.000+0000 | 430 |
| studio diagnostic log.txt | 2013-03-28T22:55:35.000+0000 | 8640 |
| studio error log.txt | 2013-03-28T22:55:35.000+0000 | 44643 |
| terminal command console.txt | 2013-03-28T22:55:35.000+0000 | 1516 |
| ti info.txt | 2013-03-28T22:55:35.000+0000 | 26358 |
| xcode path.png | 2013-03-28T22:55:35.000+0000 | 140397 |
| xcode studio preferences.png | 2013-03-28T22:55:35.000+0000 | 154771 |
| xcode version.png | 2013-03-28T22:55:35.000+0000 | 681163 |
I have problems with the module before build: Description Resource Path Location Type Project 'dustintestandroid' is missing required library: '/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130322171500/android/js.jar' dustintestandroid Build path Build Path Problem
A module created using SDK 3.0.2 does not have that resources error, but it fails to package nonetheless.
For reference, the Ant console refers to a build.xml line 247. That line reads:
Which means we should check to see if the test environment has a .bash_profile where ANDROID_NDK is set and the folder exists. This might be an issue of setup.<fail message="Neither the ANDROID_NDK environment variable, or the android.ndk property is not set to an existing Android NDK installation (check your module's build.properties). "> <condition> <not> <or> <available file="${android.ndk}" type="dir"/> <available file="${env.ANDROID_NDK}" type="dir"/>I wasn't able to reproduce this on master. I tried creating an packaging a module from studio without any issues.
Closing ticket as the issue cannot be reproduced and due to the above comments.