问题描述
我正在尝试按照 Kotlin Koans 教程在 Android Studio 中由
I'm trying to follow the Kotlin Koans tutorial in Android Studio by installing the EduTools plugin and choosing Kotlin Koans course.
一切正常,但是当我在任务描述面板中尝试检查任务"时,出现此错误:
Everything works fine, but when I try "Check Task" in the Task Description panel, I get this error:
无法启动检查
我也用 Intellij IDEA 尝试过这个插件,但得到了同样的错误.
I also tried the plugin with Intellij IDEA and got the same error.
使用:
- Android Studio 3.2 与 EduTools 2.0-2018.1-443
- Intellij IDEA 2018.2.3 与 EduTools 2.0-2018.2-906
- Android Studio 3.2 with EduTools 2.0-2018.1-443
- Intellij IDEA 2018.2.3 with EduTools 2.0-2018.2-906
推荐答案
我在 IDE 日志 为@NullReference 建议.
I found the problem in IDE logs as @NullReference suggested.
INFO - ecker.gradle.GradleCommandLine - Failed to launch checking
Cannot run program "./gradlew" (...) No such file or directory
我已将项目(设置/构建、执行、部署/构建工具/Gradle)配置为使用本地 Gradle 发行版,而且 EduTools 插件似乎总是寻找 Gradle Wrapper,所以我只需为项目生成包装器并将其配置为使用我本地的 Gradle 发行版:
I had configured the project (Settings / Build, Execution, Deployment / Build Tools / Gradle) to use a local Gradle distribution and it seems that EduTools plugin always looks for the Gradle Wrapper, so I just had to generate a Wrapper for project and configure it to use my local Gradle distribution:
gradle wrapper --gradle-distribution-url file:///path/to/local/gradle-4.6-all.zip
这篇关于带有 EduTools 插件的 Kotlin Koans:“无法启动检查"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!