Build from Command Line is OK but not from Android Studio

Viewed 414

I have just moved to Android Studio 4 and I have some weird issues with Gradle. It was failing with the error:

* What went wrong:
Failed to notify dependency resolution listener.
> Configuration compileClasspath of project XXXX is being resolved at configuration time.

I have then built from Command Line in order to be able to enable more information:

./gradlew clean
./gradlew build --scan

I have fixed all the errors and it now build successfully.

However when I come back to Android Studio and rebuild all, I still get the same error. I don't understand why and I don't know what I could do now!

Do you have some advices?

EDIT:

I have just seen in Android Studio that it failes with the following error:

Analytics other plugin to proto: Unknown plugin type com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin expected enum COM_ANDROID_IDE_GRADLE_MODEL_BUILDER_ANDROIDSTUDIOTOOLINGPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.plugins.ide.idea.IdeaPlugin expected enum ORG_GRADLE_PLUGINS_IDE_IDEA_IDEAPLUGIN
Analytics other plugin to proto: Unknown plugin type com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin expected enum COM_ANDROID_IDE_GRADLE_MODEL_BUILDER_ANDROIDSTUDIOTOOLINGPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.plugins.ide.idea.IdeaPlugin expected enum ORG_GRADLE_PLUGINS_IDE_IDEA_IDEAPLUGIN
Analytics other plugin to proto: Unknown plugin type com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin expected enum COM_ANDROID_IDE_GRADLE_MODEL_BUILDER_ANDROIDSTUDIOTOOLINGPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.plugins.ide.idea.IdeaPlugin expected enum ORG_GRADLE_PLUGINS_IDE_IDEA_IDEAPLUGIN
Analytics other plugin to proto: Unknown plugin type com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin expected enum COM_ANDROID_IDE_GRADLE_MODEL_BUILDER_ANDROIDSTUDIOTOOLINGPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.plugins.ide.idea.IdeaPlugin expected enum ORG_GRADLE_PLUGINS_IDE_IDEA_IDEAPLUGIN
Analytics other plugin to proto: Unknown plugin type com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin expected enum COM_ANDROID_IDE_GRADLE_MODEL_BUILDER_ANDROIDSTUDIOTOOLINGPLUGIN
Analytics other plugin to proto: Unknown plugin type org.gradle.plugins.ide.idea.IdeaPlugin expected enum ORG_GRADLE_PLUGINS_IDE_IDEA_IDEAPLUGIN
0 Answers
Related