Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27314] Android: Unable to build to device on Windows

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-08-09T10:25:07.000+0000
Affected Version/sRelease 8.1.0
Fix Version/sRelease 8.1.0
ComponentsAndroid
Labelsn/a
ReporterSamir Mohammed
AssigneeEwan Harris
Created2019-08-07T12:15:30.000+0000
Updated2019-08-09T10:25:07.000+0000

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*

Create an application using SDK version 8.1.0.v20190806151528

Run the app to a device

*Actual result* Above error is seen *Expected result* Application should build successfully

Comments

  1. Ewan Harris 2019-08-07

    titanium_prep: https://github.com/appcelerator/titanium_prep/pull/34
  2. Ewan Harris 2019-08-07

    master: https://github.com/appcelerator/titanium_mobile/pull/11121 8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11122
  3. Lokesh Choudhary 2019-08-07

    Waiting for 8_3_X PR.
  4. Ewan Harris 2019-08-08

    8_3_X PR: https://github.com/appcelerator/titanium_mobile/pull/11127
  5. Samir Mohammed 2019-08-08

    Fix verified in SDK version 8.1.0.v20190807134709 and 8.2.0.v20190808013720 Test and other information can be found at: master: https://github.com/appcelerator/titanium_mobile/pull/11121 8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11122
  6. Samir Mohammed 2019-08-08

    FR Passed and waiting on Jenkins build for 8_3_X
  7. Samir Mohammed 2019-08-09

    Closing ticket, fix now verified in SDK version: 8.3.0.v20190808035522

JSON Source