Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-126

Android: Unable to build app for SDK 3.5.1.GA after updating from Titanium Studio to Appcelerator Studio (Re: AssetCryptImpl.java)

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Appcelerator CLI, Studio
    • Labels:
    • Environment:

      Description

      After updating from Titanium Studio to Appcelerator Studio, building an Android app targeting Ti SDK 3.5.1.GA causes the following error:

      [INFO] : Packaging application: F:\SDK\Android-SDK\build-tools\22.0.1\aapt.exe "package" "f" "-m" "-J" "F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\gen" "-M" "F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\AndroidManifest.xml" "-A" "F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\bin\assets" "-S" "F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\res" "-I" "F:\SDK\Android-SDK\platforms\android-16\android.jar" "-F" "F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\bin\app.ap_" "auto-add-overlay" "-extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat" "-S" "C:\Users\Adam\AppData\Local\Temp\115413-8656-1drm8rv/res" "-S" "C:\Users\Adam\AppData\Local\Temp\115413-8656-1su1jt/res"
      [INFO] : Building Java source files: C:\Program Files (x86)\Java\jdk1.7.0_40\bin\javac.exe "-J-Xmx256M" "-encoding" "utf8" "-bootclasspath" "F:\SDK\Android-SDK\platforms\android-16\android.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\kroll-v8.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-analytics.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\aps-analytics.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-android.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\jaxen-1.1.1.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\ti-commons-codec-1.3.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\kroll-common.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\titanium.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-app.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-ui.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\nineoldandroids-appc-2.4.0.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-filesystem.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-media.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-appcompat.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\android-support-v4.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\android-support-v7-appcompat.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-locale.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-network.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\thirdparty.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-xml.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-platform.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-gesture.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-database.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\modules\titanium-utils.jar;C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.5.1.GA\android\lib\titanium-verify.jar;Manifest.class;R.class;ApplicationStylesheet.class;AssetCryptImpl.class;OnesurvActivity.class;OnesurvAppInfo.class;OnesurvApplication.class" "-d" "F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\bin\classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\java-sources.txt"
      [ERROR] : Failed to compile Java source files:
      [ERROR] :
      [ERROR] : F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\gen\com\onesurv\android\AssetCryptImpl.java:44: error: cannot find symbol
      [ERROR] : Range range = assets.get(path);
      [ERROR] : ^
      [ERROR] : symbol: variable assets
      [ERROR] : location: class AssetCryptImpl
      [ERROR] : F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\gen\com\onesurv\android\AssetCryptImpl.java:48: error: cannot find symbol
      [ERROR] : return new String(filterDataInRange(assetsBytes, range.offset, range.length));
      [ERROR] : ^
      [ERROR] : symbol: variable assetsBytes
      [ERROR] : location: class AssetCryptImpl
      [ERROR] : Note: F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\OneSurv\build\android\gen\com\onesurv\android\AssetCryptImpl.java uses unchecked or unsafe operations.
      [ERROR] : Note: Recompile with -Xlint:unchecked for details.
      [ERROR] : 2 errors
      TRACE | titanium exited with exit code 1
      ERROR | Error: ti run exited with error code 1
      at ChildProcess.<anonymous> (C:\Users\Adam\.appcelerator\install\0.2.282\package\node_modules\appc-cli-titanium\plugins\run.js:84:66)
      at ChildProcess.emit (events.js:110:17)
      at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
      [ERROR] Application Installer abnormal process termination. Process exit value was 1

      This is the exact same symptom to this ticket: https://jira.appcelerator.org/browse/TIMOB-16618

      My config is:
      $ ti config
      android.ndkPath = ""
      android.sdkPath = "F:\SDK\Android-SDK"
      app.workspace = "F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace"
      cli.colors = true
      cli.completion = false
      cli.failOnWrongSDK = false
      cli.httpProxyServer = ""
      cli.ignoreDirs = "^(\.svn|svn|\.git|\.hg|\.?[Cc][Vv][Ss]|\.bzr|\$RECYCLE\.BIN)$"
      cli.ignoreFiles = "^(\.gitignore|\.npmignore|\.cvsignore|\.DS_Store|\..*|[Tt]humbs.db|\.vspscc|\.vssscc|\.sublime-project|\.sublime-workspace|\.project|\.tmproj)$"
      cli.logLevel = "trace"
      cli.progressBars = true
      cli.prompt = true
      cli.rejectUnauthorized = true
      cli.width = 100
      paths.commands = []
      paths.hooks = []
      paths.modules = []
      paths.plugins = ["F:\My Documents\My Dev\Mobile\Titanium_Studio_Workspace\Library\plugins"]
      paths.sdks = ["C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32","C:\Users\Adam\AppData\Roaming\Titanium"]
      paths.templates = []
      sdk.defaultInstallLocation = "C:\Users\Adam\AppData\Roaming\Titanium"
      sdk.selected = "4.0.0.RC3"
      user.locale = "en-gb"

      My Titanium setup is:
      ──────────────────┤ Check Environment ├───────────────────

      Node.js
      V node up-to-date (v0.12.2)

      npm new version v2.10.0 available! (currently v2.7.4)
      Titanium CLI
      V cli bleeding edge (v3.4.2)

      Titanium CLI Dependencies
      V async up-to-date (v0.2.10)
      V colors up-to-date (v0.6.2)
      V fields up-to-date (v0.1.23)
      V humanize up-to-date (v0.0.9)
      V jade up-to-date (v0.35.0)
      V longjohn up-to-date (v0.2.4)
      V moment up-to-date (v2.4.0)
      V node-appc up-to-date (v0.2.25)
      V optimist up-to-date (v0.6.1)
      V request up-to-date (v2.27.0)
      V semver up-to-date (v2.2.1)
      V sprintf up-to-date (v0.1.5)
      V temp up-to-date (v0.6.0)
      V winston up-to-date (v0.6.2)
      V wrench up-to-date (v1.5.8)

      Titanium SDK
      V latest sdk installed (v3.5.1.GA)
      V selected sdk up-to-date (v3.5.1.GA)

      Android Environment
      V sdk installed (F:\SDK\Android-SDK)
      ! tools untested version 24.2.0; may or may not work
      V platform tools installed (v22.0.0)
      V build tools installed (v22.0.1)
      V adb installed F:\SDK\Android-SDK\platform-tools\adb.exe
      V android installed F:\SDK\Android-SDK\tools\android.bat
      V emulator installed F:\SDK\Android-SDK\tools\emulator.exe
      V mksdcard installed F:\SDK\Android-SDK\tools\mksdcard.exe
      V zipalign installed F:\SDK\Android-SDK\build-tools\22.0.1\zipalign.exe
      V aapt installed F:\SDK\Android-SDK\build-tools\22.0.1\aapt.exe
      V aidl installed F:\SDK\Android-SDK\build-tools\22.0.1\aidl.exe
      V targets installed (2 found)
      V avds installed (1 found)
      ! ndk Android NDK not found

      Java Development Kit
      V jdk installed (v1.7.0)
      V java installed C:\Program Files (x86)\Java\jdk1.7.0_40\bin\java.exe
      V javac installed C:\Program Files (x86)\Java\jdk1.7.0_40\bin\javac.exe
      V keytool installed C:\Program Files (x86)\Java\jdk1.7.0_40\bin\keytool.exe
      V jarsigner installed C:\Program Files (x86)\Java\jdk1.7.0_40\bin\jarsigner.exe

      Intel® Hardware Accelerated Execution Manager (HAXM)
      V compatible
      ! installed not found; install HAXM to use Android x86 emulator

      Network
      V online

      no proxy server configured
      V http request test
      V https request test
      Directory Permissions
      V home directory
      V titanium config directory
      V titanium sdk install directory
      V workspace directory
      V temp directory

      My TiApp.xml has the following line when I'm building for 3.5.1.GA:
      <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16"/>

      Please help, as I can't build my app at all.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rtlechuga Radamantis Torres-Lechuga (Inactive)
                Reporter:
                anfen Adam Fennell
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code