[TIMOB-9336] Android:Packaging:V8:Error occurring while packaging with sdk 2.1.0 whereas same project gets packaged with sdk 2.0.2
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-11T16:00:36.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-12 Core |
Components | Android |
Labels | core, qe-testadded, regression |
Reporter | Shyam Bhadauria |
Assignee | Bill Dawson |
Created | 2012-06-01T01:21:39.000+0000 |
Updated | 2012-07-04T04:33:27.000+0000 |
Description
A regression, the behavior do not exists in 1.8.2 and 2.0.2.
This occurs only on windows.On MAC,packaging with sdk 2.1.0 is not throwing error.
Steps to reproduce :
1) Create the default Titanium project with sdk selected as 2.1.0.
2) Go to Publish > Distribute - Android app store
3) Fill in your Distribution Location, Keystore Location, Keystore Password, and Key Alias
4) Click Publish
Actual result
While packaging a project if sdk is 2.1.0,it gives error.While with 2.0.2(or 1.8.2), the same project packages successfully.
The logs received with different sdks(1.8.2, 2.0.2 and 2.1.0) are attached with the bug.
Error shown is below :
[ERROR] Error(s) compiling generated Java code
[ERROR] C:\Appcelerator\Tit alternate workspace\test3\build\android\gen\com\appc\test3\AssetCryptImpl.java:24: expected
None
^
1 error
Expected result:
Packaging should be successful with sdk 2.1.0 also.
Attachments
Is the host operating system Win 7 32-bit or 64-bit?
Testing Notes
Test the fail case
* Use Titanium SDK 2.1.0.v20120531211118 or the master (2.1.0) branch prior to my fix. * Do this in Windows 7. * _Before_ opening Titanium Studio, make sure you do _not_ have a JAVA_HOME environment variable set, but that you _do_ have the directory that contains "javac" (the java compiler) in your PATH. * Create the default Titanium Mobile project in Titanium Studio. * Package using the "Distribute - Android App Store" option. * The build should fail and you should see the error described by the submitter of this JIRA item.Test the fix
* Same as above, but you shouldn't see an error this time.Test packaging on all platforms
* Because I changed titanium_prep, you need to test packaging a project (any project) using "Distribute - Android App Store" on ... * * OS X * * Windows 7 (you'll have done that already in "Test the fix" above). * * Linux 32-bit * * Linux 64-bitPull request ready https://github.com/appcelerator/titanium_mobile/pull/2353
Verified packaging works as expected on Linux, Mac, Win 7. Special emphasis paid to Win 7. Used SDK 2.1.0.v20120619172256, tried with and without JAVA_HOME variable.