问题描述
我正在尝试按照 Kotlin Koans 教程在Android Studio中进行操作href ="https://www.jetbrains.com/help/education/install-edutools-plugin.html?section=Android%20Studio" rel ="noreferrer">安装EduTools插件和选择Kotlin Koans课程.
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:“无法启动检查"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!