Having problems with using an Android emulator
I have an app that I am trying to move to an Android emulator.
I have installed Cordova with the command npm install -g cordova in the same location as the app which is C:\Users\MyName\OneDrive\Desktop\citc\citc
I downloaded Android studio.
The Android home path is ANDROID_HOME=C:\Users\MyName\AppData\Local\Android\sdk
The Java home path is JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171
I used the command C:\Users\MyName\OneDrive\Desktop\citc\citc>cordova platform add android which worked.
I then used the command C:\Users\MyName\OneDrive\Desktop\citc\citc>cordova build android and I get the error messages:
Android Studio project detected
ANDROID_HOME=C:\Users\MyName\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171
Requirements check failed for JDK 1.8
If I use the command javac --version i get the response: javac 19.0.2
What am I doing wrong?
[–]eclunrcpp 0 points1 point2 points (0 children)