Hi,
I'm trying to build an extension that uses an external library, in that library theres use of java 8 features such as default interface methods.
The following trace shows the error when i try to build it:
dexAllExtensions:
dexExtension:
[java] Uncaught translation error: com.android.dx.cf.code.SimException: default or static interface method used without --min-sdk-version >= 24
[java] 1 error; aborting
BUILD FAILED
C:\...\appinventor-sources\appinventor\build.xml:46: The following error occurred while executing this line:
C:\...\appinventor-sources\appinventor\components\build.xml:464: The following error occurred while executing this line:
C:\...\appinventor-sources\appinventor\components\build.xml:477: Java returned: 1
Is there a way to build the extension using this library? Or a work around that i could use?
Other info:
- The external library is https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime
- The library is already added to the libs folder and the build.xml file was updated to copy it
- The extension already has the UsesLibrary set to this dependency and the androidMinSdk = 24 added to its declaration
- I'm using the appinventor-sources to build it