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

在这里插入图片描述

解决方法

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

在这里插入图片描述

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

在这里插入图片描述

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

猜你喜欢

转载自blog.csdn.net/qq_42257666/article/details/124950826