"Operation Succeeded" in Android Studio 4.1, with no action

I just figured out that, if you upgrade your gradle in one branch and change your branch to something which had the old gradle, you may face this issue.

I just updated the gradle and it fixed the issue.For me I change from

classpath 'com.android.tools.build:gradle:4.0.1'

to

classpath 'com.android.tools.build:gradle:4.1.2'

I see this when switching branches from one that uses Android Gradle Plugin 4.0.1 and Gradle 6.1.1 to one that uses Android Gradle Plugin 4.1.1 and Gradle 6.5.

The workaround here is to manually run File > Sync Project with Gradle Files.


This is an issue of Gradle 4.1.1, Will work properly in Gradle 4.1.0, Please use :

classpath 'com.android.tools.build:gradle:4.1.0'

Changing o updating your gradle version is not the real solution.

classpath 'com.android.tools.build:gradle:5.?.?'

if you change the value this is provoking a new project sync with the files of your project.

so the real solution is to synchronize the project with the Gradle files:

File > Sync Project with Gradle Files.