Ionic cordova failed to run android

cordova.cmd build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Users\Olato\AppData\Local\Android\Sdk (recommended setting)
ANDROID_HOME=C:\Users\Olato\AppData\Local\Android\Sdk (DEPRECATED)
Requirements check failed for JDK 8 (‘1.8.*’)! Detected version: 12.0.2
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android exited with exit code 1.

Please how do I solve this issue!

downgrade your jdk verson 12.0.2 to 8

okay thanks! how do i solve the other issues?

did you changed JDK version?

yes I have change the jdk version to 1.8

So got any other error?