Closed dreamwdp closed 7 months ago
专业版的 2021.3.3
大哥,有空可以帮我看一下下面的报错嘛,编译的时候无法通过,别的一些问题都解决了,但是这个报错找半天没发现问题在哪,插件包各个版本也都是对的上的,如果您没遇到过,希望可以提供一下思路,因为本人插件开发比较小白,这个看起来像是环境gradle使用的某个类找不到,但是我用的插件版本和git上是一样的,缺的一些环境也都下完了,所以挺奇怪的
Task :compileKotlin NO-SOURCE Task :compileJava UP-TO-DATE Task :processResources UP-TO-DATE Task :classes UP-TO-DATE Task :setupInstrumentCode Task :instrumentCode FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':instrumentCode'.
taskdef class com.intellij.ant.InstrumentIdeaExtensions cannot be found using the classloader AntClassLoader[]
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 37s
JDK升级一下,建议是JDK11以上。
是用的11的,用的 eclipse temurin的11.0.18,依赖setDependence 也正常,就这报错咋都整不了...
查到原是1.12.0的插件依赖有问题,官方已经在13修复了 https://github.com/JetBrains/gradle-intellij-plugin/commit/f0b6ad6694ef822470d97ecc0d1d7e1c2bbd9401
终于解决了,build.gradle加个参数 instrumentCode.set(false) 就可以过去了,本来想升到v1.13.3的,但是升了发现很多参数设置在13里面压根没有,只能靠大佬有空再看看了 kotlin语法实在是不熟悉
牛逼, 没subscribe的issue, 甚至没见过的repo, 都给我推送通知
牛逼, 没subscribe的issue, 甚至没见过的repo, 都给我推送通知
我也是。。。我都不知道这是啥
采访一下,你是用的idea哪个版本的插件包开发的啊,我用的2021 03,一直报找不到包