AS报错Error: Gradle project sync failed. Please fix your project and try again.

一、前言:

我从别的分支切换到当前分支,报错如下:

图片.png

尝试Rebuild工程(Build-> Rebuild Project)多次还是不行。

二、解决:

1、方法1:

File -> Invalidate caches / Restart

2、方法2:

File ->Sync Project with Gradle Files

你可能感兴趣的:(AS报错Error: Gradle project sync failed. Please fix your project and try again.)