Gradle sync failed: Unsupported method: KotlinPlatformContainer.supports()

Benjamin picture Benjamin · Oct 3, 2019 · Viewed 8.4k times · Source

I just updated Android Studio to the latest version 3.5.1 and I know get the following error:

Gradle sync failed: Unsupported method: KotlinPlatformContainer.supports(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model.

I use Kotlin Multiplatform in two of my modules but I don't know if it's related.

Answer

Deep Lathia picture Deep Lathia · Jul 7, 2020

Invalidate caches and Restart worked for me

You can also try restarting the IDE first, in case if you're concerned about saving local history and other cached data.