Please ensure JDK installation is valid and compatible with the current OS

报错如下:

Gradle sync failed: Could not run JVM from the selected JDK.
			Please ensure JDK installation is valid and compatible with the current OS (Windows 10 10.0, amd64).
			If you are using embedded JDK, please make sure to download Android Studio bundle compatible
			with the current OS. For example, for x86 systems please choose a 32 bits download option. (14 ms)

解决方法:多半是你的jdk 设置的有问题

在这里插入图片描述
看下这里的jdk 是不是路径写错了,或者没有设置。设置正确就行了。
在这里插入图片描述

原文地址:https://www.cnblogs.com/caoxinyu/p/10568478.html