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

Android: Failed to encrypt JavaScript files (OS X)

    Details

      Description

      Steps to Reproduce

      after update/build 3.3.0.201312200849
      Build project that originated with SDK 3.1.3 GA
      When running for iOS simulator, got:

      [ERROR] :  Invalid '--ios-version' value '7.0.3'
         7.0
      Accepted values:
         7.0
      For help, run: titanium help build
      [ERROR] :  Invalid '--sim-version' value '7.0.3'
      

      Fixed by changing to Titanium SDK version 3.2.0.GA

      Attempted build for Android device with CLI version 3.2.0, Titanium SDK version 3.2.0.GA, got:

      [INFO] :   Forcing rebuild: /Users/keylo/Documents/Titanium_Studio_Workspace/Sets/build/android/build-manifest.json does not exist
      [INFO] :   Processing JavaScript files
      [INFO] :   Encrypting JavaScript files: /Users/keylo/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/android/titanium_prep.macos 'com.manhattangrade.sets' '/Users/keylo/Documents/Titanium_Studio_Workspace/Sets/build/android/assets' 'app.js'...(many file names)...'ti.cloud.js' '_app_props_.json'
      [ERROR] :  Failed to encrypt JavaScript files
      [ERROR] :  
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      Switched back to 3.1.3, got:

      [ERROR] Error generating R.java from manifest
      [ERROR] /Users/keylo/Documents/Titanium_Studio_Workspace/Sets/build/android/AndroidManifest.xml:6: error: No resource identifier found for attribute 'largeHeap' in package 'android'
      [ERROR] :  Build process exited with code 1
      [ERROR] :  Project failed to build after 1s 448ms
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      removed my alteration in tiapp.xml, android:largeHeap='true', worked for 3.1.3.
      Still fails in 3.2.0. Suspecting it may be other tiapp.xml additions I eliminated everything but did not fix. Original error:

      Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0.GA
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
      Please report bugs to http://jira.appcelerator.org/
      [INFO] :   Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=test path=/Users/keylo/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.0
      [INFO] :   Found Titanium module id=facebook version=latest platform=android deploy-type=test path=/Users/keylo/Library/Application Support/Titanium/modules/android/facebook/3.0.2
      [INFO] :   Deploy type: test
      [INFO] :   Building for target: device
      [INFO] :   Building for device: 471972d7
      [INFO] :   Targeting Android SDK: 10
      [INFO] :   Building for the following architectures: armeabi, armeabi-v7a, x86
      [INFO] :   Signing with keystore: /Users/keylo/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/android/dev_keystore (tidev)
      [INFO] :   Debugging disabled
      [INFO] :   Profiler disabled
      [INFO] :   Forcing rebuild: /Users/keylo/Documents/Titanium_Studio_Workspace/Sets/build/android/build-manifest.json does not exist
      [INFO] :   Processing JavaScript files
      [INFO] :   Encrypting JavaScript files: /Users/keylo/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/android/titanium_prep.macos 'com.manhattangrade.sets' '/Users/keylo/Documents/Titanium_Studio_Workspace/Sets/build/android/assets' 'app.js' 'data/Contents.js' 'data/Esse.js' 'data/FBData.js' 'data/Pop.js' 'data/SortData.js' 'data/SplashNames.js' 'data/cloud/Aggregator.js' 'data/cloud/JsonToCloud.js' 'data/cloud/User.js' 'data/extract_numbered_list.js' 'etc/BackgroundMaker.js' 'etc/Sorts.js' 'etc/TextTranslation.js' 'etc/strip_tags.js' 'etc/trace.js' 'ui/common/ApplicationTabGroup.js' 'ui/common/alerts/Instruct_next.js' 'ui/common/alerts/Instruct_playlist.js' 'ui/common/alerts/Instruct_start.js' 'ui/common/buttons/Explore.js' 'ui/common/dialogs/ChangeOrCancel.js' 'ui/common/dialogs/JoinDialog.js' 'ui/common/dialogs/OptionsDialog.js' 'ui/common/dialogs/PlaySaveTrack.js' 'ui/common/forms/AddMusic.js' 'ui/common/forms/LoginRegister.js' 'ui/common/lists/List_activity.js' 'ui/common/lists/List_artists.js' 'ui/common/lists/indexes/Index.js' 'ui/common/mediaControls/MediaControls.js' 'ui/common/mediaPlayers/AudioPlayer.js' 'ui/common/mediaPlayers/Sound.js' 'ui/common/mediaPlayers/VideoPlayer.js' 'ui/common/menus/ActivityMenu.js' 'ui/common/menus/Menu.js' 'ui/common/menus/RecordPoolMenu.js' 'ui/common/menus/TracklistMenu.js' 'ui/common/overlay/WindowOverlay.js' 'ui/common/overlay/views/ArtistLabel.js' 'ui/common/overlay/views/Duration.js' 'ui/common/overlay/views/Like.js' 'ui/common/overlay/views/Slider.js' 'ui/common/overlay/views/Stars.js' 'ui/common/overlay/views/Time.js' 'ui/common/progress/ProgressBar.js' 'ui/common/ratings/Rater.js' 'ui/common/rows/Row_dummy.js' 'ui/common/rows/Row_headerView.js' 'ui/common/rows/Row_iad.js' 'ui/common/rows/Row_playlist.js' 'ui/common/rows/Row_recordpool.js' 'ui/common/rows/Row_tracklist.js' 'ui/common/search/Search.js' 'ui/common/status/Status.js' 'ui/common/tables/Table_playlist.js' 'ui/common/textfields/Link_tf.js' 'ui/handheld/ApplicationView.js' 'Myservice.js' 'ti.cloud.js' '_app_props_.json'
      [ERROR] :  Failed to encrypt JavaScript files
      [ERROR] :  
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      Actual Result

      [ERROR] :  Failed to encrypt JavaScript files
      [ERROR] :  
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      Expected Result

      build

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                keylo Keylo E.
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18114
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code