IllegalArgumentException when compiling using TeaVM

78 Views Asked by At

I am trying to compile a Flavour project using TeaVM. I am going through TeaVM Gradle plugin, and I am getting the following error:

java.lang.IllegalArgumentException: java.lang.Object is not subclass of ...

I have tried running ./gradlew clean, to no avail.

1

There are 1 best solutions below

4
Vic Seedoubleyew On BEST ANSWER

This seems to be due to an illegal state inside the TeaVM compiler.

To fix the situation, simply stop the Gradle daemons:

./gradlew --stop