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

报错信息
Unable to start the daemon process.

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

Possible solution:
 - Upgrade Gradle wrapper to 4.8 version and re-import the project

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

解决方法

File——>Settings,到Gradle配置界面,可以看到默认使用的是AS自带的JDK11。

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

修改为电脑安装的JDK1.8,然后Apply——>OK,重新同步项目即可。

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

如果上面方法无效,修改build-gradle文件中的版本,和你Android Studio相同即可。

你可能感兴趣的:(Android经验,android,java,gradle,报错解决)