Creating extension using external library with java 8 features

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:

Can you try:

import androidx.annotation.RequiresApi;

and then add this line after @UsesLibraries:

@RequiresApi(api = 24)

tried it, but no luck

Use rush.