Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27266

Titanium "Failed to encrypt JavaScript files" error on >=8.0.1.GA on Windows when using 32 bit java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 8.0.1, Release 8.0.2
    • Fix Version/s: Release 8.1.1
    • Component/s: CLI
    • Environment:

      Windows 10, Titanium >=8.0.1.GA

    • Story Points:
      5
    • Sprint:
      2019 Sprint 17, 2019 Sprint 18

      Description

      There is a bug on Titanium 8.0.1.GA & 8.0.2.GA, where when running a simple compile:

      ti run -p android -T device
      

      Gives the error:

      [INFO]  Encrypting JavaScript files: C:\ProgramData\Titanium\mobilesdk\win32\8.0.1.GA\android\titanium_prep.win32.exe "com.example.sandbox" "C:\path\to\project\build\android\assets" "--file-listing" "C:\path\to\project\build\android\titanium_prep_listing.txt"
      [ERROR] Failed to encrypt JavaScript files
      [ERROR]
      

      I narrowed down the issue to changes made to titanium_prep.win32.exe.

      Looking at the history:
      https://github.com/appcelerator/titanium_mobile/commits/master/support/android/titanium_prep.win32.exe

      It seems that one of the 2 commits to be blamed are:
      https://github.com/appcelerator/titanium_mobile/commit/3eaf55c596402078321632c682549428b7c57371#diff-81660f9ac67f928cddca3a1e35855580
      or
      https://github.com/appcelerator/titanium_mobile/commit/86b3fc01230a0ec09c0b2577a3e68c1e488e48b1#diff-81660f9ac67f928cddca3a1e35855580

      A temp workaround is to copy the titanium_prep.win32.exe and titanium_prep.win64.exe from 8.0.0.GA and replace the ones in the newer 8.0.1.GA or 8.0.2.GA.

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              yahya12 Yahya Uddin
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code