异常org.codehaus.groovy.reflection.ReflectionCache :无法在运行gradlew.bat文件时初始化gradlew.bat类 |
您所在的位置:网站首页 › cmd无法正常运行 › 异常org.codehaus.groovy.reflection.ReflectionCache :无法在运行gradlew.bat文件时初始化gradlew.bat类 |
我试图通过cmd运行一个gradlew.bat文件,但遇到了以下错误: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper > Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"]我试着从这个post跟踪各种解决方案,但都没有效果。我尝试将gradle-wrapper.properties中的值从 distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-bin.zip至 distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip然后又跑了一次,但遇到了: A problem occurred configuring root project 'nexus-deploy'. > Could not open cp_proj remapped class cache for s5e1jtxdcnwfq13zlj7qke7c然后,我尝试从gradle缓存中移除脚本+脚本--重新映射的文件夹,但这也没有效果。最后,我试着跑 ./gradlew clean但得到 * What went wrong: A problem occurred configuring root project 'nexus-deploy'. Could not open cp_proj remapped class cache for s5e1jtxdcnwfq13zlj7qke7c我不知道哪里出了问题,也不知道还能尝试什么。我使用的是java版本"1.8.0_341“和Gradle 7.5.1。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |