简体   繁体   English

Android Studio 3.1 Canary 3 - Gradle项目同步失败

[英]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 使用Android Studio 3.1 Canary 3进行Android应用程序开发,使用Kotlin,每当工作室打开时,我都会收到以下错误

Gradle project sync failed. Gradle项目同步失败。 Basic functionality(eg 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 这不是Android studio 3.0及更高版本中内置kotlin的问题,而是Kotlin插件的问题

在此输入图像描述

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 这是将旧版Android Studio(您已在插件中安装Kotlin)中的所有设置导入Android Studio 3和3.1时出现的常见问题

So, to rectify the issue go to 所以,要纠正这个问题去

Preferences -> Plugins -> Search for Kotlin and Uninstall 首选项 - > 插件 - >搜索Kotlin卸载

since we have built-in Kotlin support in the latest Android Studios, we may not need this Kotlin plugin anymore 由于我们在最新的Android Studios中内置了Kotlin支持,我们可能不再需要这个Kotlin插件了

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM