使用 react native android 的 ./gradlew clean 问题

Issue with ./gradlew clean using react native android

在我的应用程序中,我 运行 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

已修复。

我用这个值 https\://services.gradle.org/distributions/gradle-6.3-all.zip zipStoreBase=GRADLE_USER_HOME

交换了 gradle-wrapper.properties 文件中 distributionUrl 的值