问题现象
最近在使用AndroidStudio写Flutter程序总是在右下角提示错误信息,完整错误如下,也可以看截图:
Failed to download Kotlin Compiler Maven artifact (org.jetbrains.kotlin:kotlin-dist-for-jps-meta:1.8.0-release).
The search was performed in the following repos: https://repo1.maven.org/maven2
https://repository.jboss.org/nexus/content/repositories/public/
You can use Kotlin compiler which is bundled into your IDE.
Select 'Bundled' version in
'File | Settings | Build, Execution, Deployment
在使用Flutter编程时遇到Kotlin下载失败的错误,不影响编译和运行但决定解决。问题源于Android Studio,被认为是工具问题而非Flutter问题。解决方法是统一Android项目的Kotlin配置,通过修改Android Studio设置,确保所有module使用相同配置,具体操作涉及修改build.gradle文件和gradle-wrapper.properties文件。
订阅专栏 解锁全文
3661

被折叠的 条评论
为什么被折叠?



