[TIMOB-27314] Android: Unable to build to device on Windows
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-08-09T10:25:07.000+0000 |
Affected Version/s | Release 8.1.0 |
Fix Version/s | Release 8.1.0 |
Components | Android |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Ewan Harris |
Created | 2019-08-07T12:15:30.000+0000 |
Updated | 2019-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:
Create an application using SDK version
[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*
titanium_prep: https://github.com/appcelerator/titanium_prep/pull/34
master: https://github.com/appcelerator/titanium_mobile/pull/11121 8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11122
Waiting for 8_3_X PR.
8_3_X PR: https://github.com/appcelerator/titanium_mobile/pull/11127
Fix verified in SDK version
8.1.0.v20190807134709
and8.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/11122FR Passed and waiting on Jenkins build for 8_3_X
Closing ticket, fix now verified in SDK version:
8.3.0.v20190808035522