google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.75k stars 1.88k forks source link

build AAR faild。Unsupported class file major version 63 #6327

Closed jaccen closed 1 year ago

jaccen commented 1 year ago

Describe the bug at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63 at groovyjarjarasm.asm.ClassReader.(ClassReader.java:199) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:180) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:166) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:287) ... 25 more

BUILD FAILED in 2s 2 actionable tasks: 1 executed, 1 up-to-date Watched directory hierarchies: [/Users/jaccen/Desktop/Engine/filament/android] Stopped 1 worker daemon(s). To Reproduce Steps to reproduce the behavior:

  1. mac os build out/android-release/filament/lib/arm64-v8a. 2、$ ./gradlew -Pcom.google.android.filament.dist-dir=../../out/android-release/filament assembleRelease

FAILURE: Build failed with an exception.

romainguy commented 1 year ago

Looks like you are building different bits with different JDKs. Class file version 63 is from Java 19.