The project uses Gradle 4.1 which is incompatible with Java 11 or newer.

今天安装了WINDOWS11 ,然后重新下载安装了最新的Android Studio,版本号为:android-studio-2020.3.1.25-windows 64位版。

但是打开一个老工程文件(估计是2017年左右写的),打开后提示:

Unable to start the daemon process. The project uses Gradle 4.6 which is incompatible with Java 11 or newer.

打开设置:

The project uses Gradle 4.1 which is incompatible with Java 11 or newer._第1张图片

 找到这:

The project uses Gradle 4.1 which is incompatible with Java 11 or newer._第2张图片

把现在的Android Studio版本默认的选项:JAVA11

改为:jdk1.8.0_311

就通过了。 

你可能感兴趣的:(java,gradle,android,studio)