Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26615] Android Module: fails to build adding .js file in assets folder

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-05-02T23:40:28.000+0000
Affected Version/sRelease 7.4.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, engSchedule, module
ReporterVittorio Sorbera
AssigneeGary Mathews
Created2018-10-19T09:43:46.000+0000
Updated2019-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

Comments

  1. Sergey Volkov 2018-10-19

    Not sure if that's enough: https://github.com/appcelerator/titanium_mobile/compare/7_4_X...drauggres:AC-5983_7_4_X?expand=1

JSON Source