在我的应用程序中,我运行 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
最佳答案
已修复。
我将 gradle-wrapper.properties 文件中的 distributionUrl
值替换为此值 https\://services.gradle.org/distributions/gradle-6.3-all。压缩
zipStoreBase=GRADLE_USER_HOME
关于java - 使用 React Native Android 的 ./gradlew clean 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61662137/