After updated Android Studio to 4.2,
ionic cordova build android keeps giving me this:
Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.8
The reason is , in previous releases, JDK 8 was bundled with Studio. In 4.2, however, JDK 11 is now bundled instead.
But, Cordova only support JDK 8
So the solution is simple.
sudo dnf install java-1.8.0-openjdk-devel