@baldurk Did this problem come from build-tools? That's the only place I know of that uses find_java.
Starting in build-tools 31.0.0 we don't use find_java there anymore either, so if possible you might try that.
@artem_zin @tornorbye Could you elaborate on 3?
I filed https://t.co/7LRe0yUq6i for 4.
6 is waiting for the kinks to be worked out of the newer versions.