mcfarljw edited a comment on issue #1221:
URL: 
https://github.com/apache/cordova-android/issues/1221#issuecomment-834042419


   I don't know if it's related or not but a few days ago there was a big 
Android Studio update and that is when mine stopped working as well. Mine is 
spouting a different detected version as I was previously using whatever they 
provided.
   
   ```
   export JAVA_HOME="/Applications/Android 
Studio.app/Contents/jre/jdk/Contents/Home"
   export ANDROID_SDK_ROOT="$HOME/Library/Android/sdk"
   export PATH="$ANDROID_SDK_ROOT/platform-tools:$PATH"
   export PATH="$ANDROID_SDK_ROOT/tools/bin:$PATH"
   
   Requirements check failed for JDK 1.8.x! Detected version: 11.0.8
   ```
   
   @breautek tried downgrading to `[email protected]` and still having the 
same issue. My guess is that some auto updated with java recently, whether it 
be related to Android Studio or not, that is causing the issue.
   
   https://developer.android.com/studio/releases#4.2-bundled-jdk-11 seems to 
suggest this might be the case for me at least.
   
   https://developer.android.com/studio/releases#4.2-env-vars they have also 
deprecated `ANDROID_SDK_ROOT` if that is something that effects things or not.
   
   I ended up downgrading from Android Studio 4.2.0 to 4.1.3 and it's working 
again for me. Would it be possible to allow this version of the JDK given they 
have bumped their bundled version or is there something else that would block 
that?
   
   _For anyone who might be experiencing the same issue you can find previous 
versions of Android Studio here: https://developer.android.com/studio/archive_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to