使用android原生反应进行.gradlew清理的问题。

问题描述 投票:0回答:1

在我的应用程序中,我运行 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
java react-native react-native-android
1个回答
0
投票

修正:无法初始化类org.codehaus...。

我换了 distributionUrl 在gradle-wrapper.properties文件中,用这个值来表示 https\://services.gradle.org/distributions/gradle-6.3-all.zip zipStoreBase=GRADLE_USER_HOME

© www.soinside.com 2019 - 2024. All rights reserved.