I had the same issue i solved it by changing my jdk directory. Previously i was using independent jdk version, when i used jdk of android studio this problem was solved .
Location of JAVA: C:/Program Files/Android/Android Studio/jre
Under SDK API Level, use “android-29” without the quotes.
Under NDK API Level, use “latest” without the quotes.
2 Likes