After getting my project to work with iOS I am really struggling to get the Android emulator to work.
The issue seems to be around an old version of Java (1.8) being used. I have tried various solutions including ensuring that the project is using Java 11 in Android Studio, but every time I try
ionic capacitor run android --livereload
I get the same build problems.
When checking the Gradle version with
Build time: 2021-01-08 16:38:46 UTC
Ant: Apache Ant™ version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_301 (Oracle Corporation 25.301-b09)
OS: Mac OS X 10.16 x86_64
How do I get Gradle to use Java 11?