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

Android: Unable to build to device on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 8.1.0
    • Fix Version/s: Release 8.1.0
    • Component/s: Android
    • Labels:
      None
    • Environment:

      Description

      When trying to build an application to an android device on Windows the following error can be seen:

      [ERROR] :  Failed to compile Java source files:
      [ERROR] :  
      [ERROR] :  C:\Users\APPC\Documents\Appcelerator_Studio_Workspace\smoke2\build\android\gen\com\appc\sm\AssetCryptImpl.java:35: error: cannot find symbol
      [ERROR] :  	private static CharBuffer initAssetsBytes() {
      [ERROR] :  	               ^
      [ERROR] :    symbol:   class CharBuffer
      [ERROR] :    location: class AssetCryptImpl
      [ERROR] :  C:\Users\APPC\Documents\Appcelerator_Studio_Workspace\smoke2\build\android\gen\com\appc\sm\AssetCryptImpl.java:34: error: cannot find symbol
      [ERROR] :  		private static final byte[] assetsBytes = Charset.forName("ISO-8859-1").encode(initAssetsBytes()).array();
      [ERROR] :  		                                          ^
      [ERROR] :    symbol:   variable Charset
      [ERROR] :    location: class AssetCryptImpl
      [ERROR] :  C:\Users\APPC\Documents\Appcelerator_Studio_Workspace\smoke2\build\android\gen\com\appc\sm\AssetCryptImpl.java:36: error: cannot find symbol
      [ERROR] :  		CharBuffer buffer = CharBuffer.allocate(1941682);
      [ERROR] :  		^
      [ERROR] :    symbol:   class CharBuffer
      [ERROR] :    location: class AssetCryptImpl
      [ERROR] :  C:\Users\APPC\Documents\Appcelerator_Studio_Workspace\smoke2\build\android\gen\com\appc\sm\AssetCryptImpl.java:36: error: cannot find symbol
      [ERROR] :  		CharBuffer buffer = CharBuffer.allocate(1941682);
      [ERROR] :  		                    ^
      [ERROR] :    symbol:   variable CharBuffer
      [ERROR] :    location: class AssetCryptImpl
      [ERROR] :  Note: Some input files use unchecked or unsafe operations.
      [ERROR] :  Note: Recompile with -Xlint:unchecked for details.
      [ERROR] :  4 errors
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      Test Steps

      1. Create an application using SDK version 8.1.0.v20190806151528
      2. Run the app to a device

      Actual result
      Above error is seen

      Expected result
      Application should build successfully

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              smohammed Samir Mohammed
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              3 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