The gradle version in the app I am trying to import is not compatible with JDK11, which is what android studio uses as its embedded JDK. I have JDK8 on my machine. I have tried going into project structure to change the path to the JDK8 location, but I get an error if I try to change it. It says I must choose a valid JDK 11 directory. How can I get android studio to use JDK 8? error screenshot