在IDEA中,Atomic Kotlin course中总是输出一行“_checker_version 1”,即使和答案一样也无法通过
Posted 舒泱
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在IDEA中,Atomic Kotlin course中总是输出一行“_checker_version 1”,即使和答案一样也无法通过相关的知识,希望对你有一定的参考价值。
问题描述:
在Atomic Kotlin课程中,check时,多输出一行“_checker_version 1”,即使把答案复制过来运行,也通不过。
解决办法
1、找到build.gradle文件
2、打开文件,找到def printOutput(def output)方法
3、将原来的代码
def printOutput(def output) {
return tasks.create("printOutput") {
println "#educational_plugin_checker_version 1"
def lines = output.toString().split("(?<=\\n)|(?=\\n)")
for (line in lines) {
println "#educational_plugin" + line
}
}
}
替换为
def printOutput(def output) {
return tasks.create("printOutput") {
def lines = output.toString().split("(?<=\\n)")
for (line in lines) {
println "#educational_plugin" + line
}
}
}
输出的第一行没有_checker_version 1了,通过了
参考链接https://stackoverflow.com/questions/67754100/how-to-remove-checker-version-1-in-androidstudio
以上是关于在IDEA中,Atomic Kotlin course中总是输出一行“_checker_version 1”,即使和答案一样也无法通过的主要内容,如果未能解决你的问题,请参考以下文章