Android Studio Update Gradle Issue

2.1k views Asked by At

I just upgraded Android Studio to Android Studio Chipmunk 2021.2.1 and afterwards my gradle sync attempts are failing and I cannot debug my app any longer???

Getting:

7:12 AM Gradle sync needed
Project was built with Android Gradle Plugin (AGP) 7.2.0 but it is synced with .
Please sync the project with Gradle Files.
Sync project

When I sync I get:

7:17 AM Gradle sync failed: Sync failed: reason unknown

I have: Cleaned project Deleted the .gradle folder then invalidated / restarted. Used AGP tool which said all was updated.

Anybody else having this issue with the upgrade?

Thank you

1

There are 1 answers

3
chisom emmanuel On BEST ANSWER

Deleting the .idea and cache folders solved mine then clean and rebuild project will generate new gradle