Java version 1.8.0_101 required?

I got an error while using gradle saying I need a minimum of java version 1.8.0_101 required when I have Java 8 update 311

While it’s possible there’s some specific Java distribution / version combination that doesn’t expose the version exactly as needed and triggers the incorrect display of this error (you haven’t provided any details that could help isolate that), it’s usually the case that the version you think you’re using isn’t the only version or the one that the system tries to use by default.