Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 219
Benjamin Avatar asked Oct 03 '19 09:10

Benjamin


2 Answers

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.

like image 144
Deep Lathia Avatar answered Sep 24 '22 23:09

Deep Lathia


It looks like the issue is known and tracked at:

  • Jetbrains: https://youtrack.jetbrains.net/issue/KT-34143
  • Google: https://issuetracker.google.com/issues/142002567
like image 43
Benjamin Avatar answered Sep 25 '22 23:09

Benjamin