在我的应用程序中,我运行 cd android
然后 ./gradlew clean
.
然后我得到一个 BUILD FAILURE
错误。
FAILURE: Build failed with an exception.
* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
* 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
修正:无法初始化类org.codehaus...。
我换了 distributionUrl
在gradle-wrapper.properties文件中,用这个值来表示 https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME