Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[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 Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-06-11T16:00:36.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 Core
ComponentsAndroid
Labelscore, qe-testadded, regression
ReporterShyam Bhadauria
AssigneeBill Dawson
Created2012-06-01T01:21:39.000+0000
Updated2012-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

FileDateSize
Packaging1.8.2.txt2012-06-01T01:21:39.000+000032170
Packaging2.0.2.txt2012-06-01T01:21:39.000+000030670
Packaging2.1.0.txt2012-06-01T01:21:39.000+000029041

Comments

  1. Bill Dawson 2012-06-07

    Is the host operating system Win 7 32-bit or 64-bit?
  2. Bill Dawson 2012-06-07

    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-bit
  3. Bill Dawson 2012-06-07

    Pull request ready https://github.com/appcelerator/titanium_mobile/pull/2353
  4. Eric Merriman 2012-06-20

    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.

JSON Source