Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7677] Android : Distribute - v8, rhino - After selecting to distribute a template in Ti Studio it fails with errors on Windows

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-02-16T14:48:36.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sSprint 2012-04, Release 2.0.0, Release 1.8.2
ComponentsAndroid
Labelsqe-and021312, regression
ReporterMichael Pettiford
AssigneeJosh Roesslein
Created2012-02-15T15:36:45.000+0000
Updated2012-02-21T11:01:00.000+0000

Description

Steps to reproduce: 1. In Ti Studio create a new project using a template (e.g. Single Window Application) 2. Select to distribute to the Android Marketplace *Actual result:* The following error is generated: [ERROR] Error(s) compiling generated Java code [ERROR] C:\Documents and Settings\Administrator\My Documents\Titanium Studio Workspace\singleAnd\build\android\gen\com\appcelerator\singleAnd\AssetCryptImpl.java:17: illegal escape character assets.put("ui\ApplicationWindow.js", "ZnVuY3Rpb24gQXBwbGljYXRpb25XaW5kb3coKXt2YXIgYT1yZXF1aXJlKCJ1aS9GaXJzdFZpZXciKSxiPVRpLlVJLmNyZWF0ZVdpbmRvdyh7YmFja2dyb3VuZENvbG9yOiIjZmZmZmZmIixuYXZCYXJIaWRkZW46ITAsZXhpdE9uQ2xvc2U6ITB9KSxhPW5ldyBhO2IuYWRkKGEpO3JldHVybiBifW1vZHVsZS5leHBvcnRzPUFwcGxpY2F0aW9uV2luZG93Owo="); ^ C:\Documents and Settings\Administrator\My Documents\Titanium Studio Workspace\singleAnd\build\android\gen\com\appcelerator\singleAnd\AssetCryptImpl.java:18: illegal escape character assets.put("ui\FirstView.js", "ZnVuY3Rpb24gRmlyc3RWaWV3KCl7dmFyIGE9VGkuVUkuY3JlYXRlVmlldygpLGI9VGkuVUkuY3JlYXRlTGFiZWwoe2NvbG9yOiIjMDAwMDAwIix0ZXh0OlN0cmluZy5mb3JtYXQoTCgid2VsY29tZSIpLCJUaXRhbml1bSIpLGhlaWdodDoiYXV0byIsd2lkdGg6ImF1dG8ifSk7YS5hZGQoYik7Yi5hZGRFdmVudExpc3RlbmVyKCJjbGljayIsZnVuY3Rpb24oYSl7YWxlcnQoYS5zb3VyY2UudGV4dCl9KTtyZXR1cm4gYX1tb2R1bGUuZXhwb3J0cz1GaXJzdFZpZXc7Cg=="); ^ 2 errors *Expected result:* Application is built without error *Note this doesn't occur with a hello world app*

Comments

  1. Josh Roesslein 2012-02-16

    Sent [PR #1442](https://github.com/appcelerator/titanium_mobile/pull/1442) to resolve this issue.
  2. Josh Roesslein 2012-02-16

    Sent [PR #1447](https://github.com/appcelerator/titanium_mobile/pull/1447) to cherry pick this fix into 1_8_X.
  3. Michael Pettiford 2012-02-21

    Closing issue Tested with Ti Studio build 1.0.9.201202131024 Ti Mob SDK 1.8.2.v20120217114657 Windows 7 & XP Verified being able to distribute a template project works as expected.

JSON Source