Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-616

Building to android with SDK 3.5.1.GA fails when using appc cli 0.2.280

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 5.1.0
    • Component/s: Titanium
    • Labels:
    • Environment:

      Environment:
      Appc Studio : 4.0.0.201505060941
      Ti SDK : 4.0.0.v20150430090209
      CLI : 4.0.0-beta8
      Alloy : 1.6.0-beta4
      MAC Yosemite : 10.10.3
      Appc npm : 0.3.55
      Appc CLI : 0.2.280
      Node: v0.10.37

    • Severity:
      Major
    • Story Points:
      8
    • Sprint:
      2015 Sprint 10 Tooling

      Description

      This might be related to the encryption fix which went in CLI 2.8.0 : CLI-608
      Steps To Reproduce:

      1. Make sure appc ali 0.2.280 is installed.
      2. Build an app for android device/emulator with sdk 3.5.1.GA.

      Actual Results:

      1. The build fails with errors:

      [INFO] :   Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/javac "-J-Xmx256M" "-encoding" "utf8" "-bootclasspath" "/Users/lokeshchoudhary/Desktop/android-sdk-macosx/platforms/android-21/android.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/kroll-v8.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-analytics.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/aps-analytics.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-android.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/jaxen-1.1.1.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/ti-commons-codec-1.3.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/kroll-common.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/titanium.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-app.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-ui.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-filesystem.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-media.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-appcompat.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/android-support-v4.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/android-support-v7-appcompat.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-locale.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-network.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/thirdparty.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-xml.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/modules/titanium-platform.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/modules/android/com.appcelerator.apm/1.1.1/crittercism.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/modules/android/com.appcelerator.apm/1.1.1/lib/classes.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/kroll-apt.jar:/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA/android/lib/titanium-verify.jar:R.class:ApplicationStylesheet.class:AssetCryptImpl.class:TestappActivity.class:TestappAppInfo.class:TestappApplication.class" "-d" "/Users/lokeshchoudhary/Desktop/workspaces/new_workspace/testapp/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/lokeshchoudhary/Desktop/workspaces/new_workspace/testapp/build/android/java-sources.txt"
      [ERROR] :  Failed to compile Java source files:
      [ERROR] :  
      [ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/new_workspace/testapp/build/android/gen/com/app/testapp/AssetCryptImpl.java:44: error: cannot find symbol
      [ERROR] :  		Range range = assets.get(path);
      [ERROR] :  		              ^
      [ERROR] :    symbol:   variable assets
      [ERROR] :    location: class AssetCryptImpl
      [ERROR] :  /Users/lokeshchoudhary/Desktop/workspaces/new_workspace/testapp/build/android/gen/com/app/testapp/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: /Users/lokeshchoudhary/Desktop/workspaces/new_workspace/testapp/build/android/gen/com/app/testapp/AssetCryptImpl.java uses unchecked or unsafe operations.
      [ERROR] :  Note: Recompile with -Xlint:unchecked for details.
      [ERROR] :  2 errors
      titanium exited with exit code 1
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      2. Same app when built with SDK 3.5.1.GA & appc cli 0.2.279 builds successfully.
      3. Same app when built with latest 4.0.0 & appc cli 0.2.280 builds successfully.

      Expected Results:

      1. The build should take place successfully with no errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                lchoudhary Lokesh Choudhary
              • Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code