[TIMOB-26615] Android Module: fails to build adding .js file in assets folder
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-05-02T23:40:28.000+0000 |
Affected Version/s | Release 7.4.0 |
Fix Version/s | n/a |
Components | Android |
Labels | android, engSchedule, module |
Reporter | Vittorio Sorbera |
Assignee | Gary Mathews |
Created | 2018-10-19T09:43:46.000+0000 |
Updated | 2019-05-02T23:40:28.000+0000 |
Description
Create a new android module:
appc new -p android -t timodule
then create and add a .js file in /assets folder, even empty, and build the module using
appc run -p android --build-only
The build fails with this error message:
[ERROR] Failed to compile Java source files:
[ERROR]
[ERROR] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[ERROR] Note: [KrollBindingGen] Running Kroll binding generator.
[ERROR] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.gen/bindings.json
[ERROR] Note: [KrollBindingGen] Found binding for proxy Example
[ERROR] Note: [KrollBindingGen] Found binding for module NewAndroidModule
[ERROR] Note: [KrollBindingGen] Generating JSON: file:/Users/Astrovic/Dati/Applicazioni/NewAndroidModule/android/build/classes/org/appcelerator/titanium/gen/bindings.json
[ERROR] /Users/Astrovic/Dati/Applicazioni/NewAndroidModule/android/build/generated/java/com/astrovicApps/NewAndroidModule/AssetCryptImpl.java:15: error: AssetCryptImpl is not abstract and does not override abstract method getAssetPaths() in AssetCrypt
[ERROR] public class AssetCryptImpl implements KrollAssetHelper.AssetCrypt
[ERROR] ^
[ERROR] Note: /Users/Astrovic/Dati/Applicazioni/NewAndroidModule/android/build/generated/java/com/astrovicApps/NewAndroidModule/AssetCryptImpl.java uses unchecked or unsafe operations.
[ERROR] Note: Recompile with -Xlint:unchecked for details.
[ERROR] 1 error
Not sure if that's enough: https://github.com/appcelerator/titanium_mobile/compare/7_4_X...drauggres:AC-5983_7_4_X?expand=1