Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1133] [Error] : Failed to encrypt JavaScript files (Windows, upon connecting an android device)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-08-14T08:16:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
LabelsTCSupportTriage, android, defect, regression
ReporterJelle Ursem
AssigneeMauro Parra-Miranda
Created2014-07-25T09:37:27.000+0000
Updated2016-03-08T07:37:29.000+0000

Description

As soon as I connect my Cubot GT99 phone (running rooted Android 4.2.1), Titanium studio refuses to complete builds on the step 'Encrypting Javascript Files' As soon as I connect another device (An oldie, running android 2.3.7) the same thing happens. As soon as I connect a Samsung Galaxy Camera, the same thing happens. As soon as I remove the connected device, I can once again run the build process and deploy it to the emulator. [INFO] Alloy compiled in 1.18245s [INFO] : Alloy compiler completed successfully [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\appicon.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\background-opacity-0.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\background-opacity-25.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\background-opacity-50.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\background-opacity-75.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\btn-danger.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\btn-default.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\btn-info.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\btn-primary.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\btn-success.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\btn-warning.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\drawer-icon.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\drawer-icon@2x.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\MarketplaceArtwork.png [WARN] : Overwriting file C:\Users\jur\Documents\Titanium\Test\build\android\bin\assets\Resources\sample-img.png [INFO] : Processing JavaScript files [INFO] : Encrypting JavaScript files: C:\ProgramData\Titanium\mobilesdk\win32\3.3.0.GA\android\titanium_prep.win32.exe "nl.samsonit.test" "C:\Users\jur\Documents\Titanium\Test\build\android\assets" "app.js" "alloy/backbone.js" "alloy/CFG.js" "alloy/constants.js" "alloy/controllers/BaseController.js" "alloy/controllers/download.js" "alloy/controllers/index.js" "alloy/styles/download.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "alloy/underscore.js" "alloy/widget.js" "alloy.js" "_app_props_.json" [INFO] : Encrypting JavaScript files: C:\ProgramData\Titanium\mobilesdk\win32\3.3.0.GA\android\titanium_prep.win64.exe "nl.samsonit.test" "C:\Users\jur\Documents\Titanium\Test\build\android\assets" "app.js" "alloy/backbone.js" "alloy/CFG.js" "alloy/constants.js" "alloy/controllers/BaseController.js" "alloy/controllers/download.js" "alloy/controllers/index.js" "alloy/styles/download.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "alloy/underscore.js" "alloy/widget.js" "alloy.js" "_app_props_.json" [ERROR] : Failed to encrypt JavaScript files [ERROR] Application Installer abnormal process termination. Process exit value was 1 Even switching the run target in Studio does not make any difference, the build will fail. As soon as I disconnect the phone, i can compile again.

Comments

  1. Jelle Ursem 2014-07-28

    Some further information on this bug: I tried running the encryption command to get some output from the commands: The x32 builtool just says 'file is too big.' (WHAT file?!??!!) The x64 buildtool says 'unable to locate a valid jvm.dll' (which makes sense, since I uninstalled my x64 java since is was complaining about incompatibilities) http://i.imgur.com/ie6Fr5q.png Is there any information anywhere on what this command is supposed to do? Can it show more info?
  2. Mauro Parra-Miranda 2014-08-05

    Hello! Can you please provide the output of "ti info"? 1. Go to Start menu 2. Go to the run cmd 3. Run ti info there 4. Paste the output in a message here. Best Regards!
  3. Jelle Ursem 2014-08-05

  4. Mauro Parra-Miranda 2014-08-07

    Hello Jelle, looks like either you don't have JAVA or any of the env variables are missing. Look at: × Java not found. If you already have Java installed, make sure it's in the system PATH. Java can be downloaded and installed from http://appcelerator.com/jdk. Please read the docs for the install: http://docs.appcelerator.com/titanium/latest/#!/guide/Prerequisites Best Regards!
  5. Mauro Parra-Miranda 2014-08-14

    Please check your java installation.

JSON Source