Search code examples
androidandroid-studiointellij-14

Android Studio 3.1 Canary 3 - Gradle project sync failed


Using Android Studio 3.1 Canary 3 for Android application development using Kotlin, whenever the studio is opened, I get the following error

Gradle project sync failed. Basic functionality(e.g editing debugging) will not work properly

It is not the issue relevant to the built-in kotlin in Android studio version3.0 and above but the Kotlin plugin's

enter image description here


Solution

  • This is a common issue that occurs when you import all the settings from your old version of Android Studio (where you would have already installed Kotlin in plugins) to Android Studio 3 and 3.1

    So, to rectify the issue go to

    Preferences -> Plugins -> Search for Kotlin and Uninstall

    since we have built-in Kotlin support in the latest Android Studios, we may not need this Kotlin plugin anymore

    Hope this helps!