GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-10T20:16:34.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 Core |
Components | Android |
Labels | core, qe-and100112 |
Reporter | Pragya Rastogi |
Assignee | Max Stepanov |
Created | 2012-11-30T10:33:48.000+0000 |
Updated | 2012-12-11T00:39:46.000+0000 |
Steps To Reproduce:
1. Complete install Studio 3.0
2. Create Android Module
3. Create Android Project
4. Package Android Module in Project/SDK/Directory.
Actual:
Packaging fails. Error
Executing build.xml...
C:\Users\pragya.rastogi\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.v20121128151109\module\android\build.xml:370: The following error occurred while executing this line:
C:\Users\pragya.rastogi\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.v20121128151109\module\android\build.xml:325: exec returned: 2
Expected:
packaging must occur properly.
When did this start to fail?
Okay, so this is in the NDK build:
Running build.xml manually gives this error:
Appears to be related to this commit: https://github.com/appcelerator/titanium_mobile/commit/8c1dd478b8ad03aebd3d262a46ec5619d3eb85c5
Removing user.name from the tmpdir allows me to build.
Simple fix is to use:
PR https://github.com/appcelerator/titanium_mobile/pull/3505 3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3506
https://github.com/appcelerator/titanium_mobile/pull/3505 master https://github.com/appcelerator/titanium_mobile/pull/3506 3_0_X
Still seeing this with build 3.0.0.v20121130150206. See http://pastie.org/5460612 for result of Stuio "run as ANT build" on the Build.xml.
Edit: checking
FWIW, I see weird behavior on Windows 8. It's as if the user.name property is empty _sometimes_. If I delete user.name.nospaces from the tmpdir construction, it works 100% reliably for me.
Followup PR https://github.com/appcelerator/titanium_mobile/pull/3513 3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3514
Attached build.xml
Reopening as the issue is still seen on the following environment: Titanium studio : 3.0.0.201212071410 SDK Version : 3.0.0.v20121130150206;3.0.0.v20121130200208;3.0.0.v20121207120202 CLI version : 3.0.20 OS : Win 7 64 bit Cant package android module on win 7
Lokesh, please provide the exact error you are seeing now.
@Ingo I am seeing this error. Executing build.xml... C:\Users\Lokesh\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.v20121207120202\module\android\build.xml:371: The following error occurred while executing this line: C:\Users\Lokesh\AppData\Roaming\Titanium\mobilesdk\win32\3.0.0.v20121207120202\module\android\build.xml:326: exec returned: 2
Right-click on the build.xml to run as an ANT build and see what that returns.
I ran it as Ant build & got the following result:
Okay, now set the android.ndk property in the build.properties file and try again.
Ok,setting the ndk property & running ant build gives:
@Lokesh...have you installed gperf?
No,I do not have gperf.
@Ingo, Installed gperf & android packaging was successful.
Verified the fix I am able to package android module on win 7 without any issues. Titanium studio : 3.0.0.201212071410 SDK Version : 3.0.0.v20121207120202 CLI version : 3.0.20 OS : Win 7 64 bit