shreyashsaitwal / rush-cli

:zap: A new and improved way of building MIT AI2 extensions.
GNU General Public License v3.0
46 stars 24 forks source link

ERR Static interface methods are only supported starting with Android N ? #18

Closed Biangkerok32 closed 3 years ago

Biangkerok32 commented 3 years ago

Hi Sir Shreyash,

ERR Static interface methods are only supported starting with Android N

ERR Static interface methods are only supported starting with Android N (--min-api 24): androidx.browser.trusted.TrustedWebActivityDisplayMode androidx.browser.trusted.TrustedWebActivityDisplayMode.fromBundle(android.os.Bundle)

ERR Compilation failed
Failed

Im try build extension use androidx.browser library(browser-1.3.0.jar),and get error that :thinking: is bug or something ?

Screenshots

error

Desktop

shreyashsaitwal commented 3 years ago

What happens if you build with the optimization turned off? You can turn it off by passing the --no-optimize flag.

Biangkerok32 commented 3 years ago

--no-optimize

same errors sir,

shreyashsaitwal commented 3 years ago

Looks like one of the extension's dependencies is using a Java 8 language feature -- static interface methods. As of now, Rush doesn't support the use of the Java 8 language features (FYI, AI2 doesn't support it either).

But yes, support for Java 8 language features is already on the roadmap and is planned for v1.2.0. You'll have to wait until then.

shreyashsaitwal commented 3 years ago

22 has fixed this.