我看到了这个 gradle 错误:“无法初始化类 org.codehaus.groovy.runtime.InvokerHelper”。我尝试了多种在线列出的方法来解决该问题,但没有成功。在调试过程中,我发现了奇怪的 JVM 版本。
安装了 Java 14,我在 bash_profile 中的 JAVA_HOME 中设置了路径。但是,gradle 显示的是 JVM 13 版本。我不确定这是否会导致错误:Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
我的java版本
java version "14.0.1" 2020-04-14
Java(TM) SE Runtime Environment (build 14.0.1+7)
Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)
Run Code Online (Sandbox Code Playgroud)
Gradle 版本,但不确定为什么 JVM 显示 13
Gradle 6.5
------------------------------------------------------------
Build time: 2020-06-02 20:46:21 UTC
Revision: a27f41e4ae5e8a41ab9b19f8dd6d86d7b384dad4
Kotlin: 1.3.72
Groovy: 2.5.11
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: **13.0.2 (Oracle Corporation 13.0.2+8)**
OS: Mac OS X …Run Code Online (Sandbox Code Playgroud) gradle gradlew android-studio react-native react-native-android
我看到了这个问题“找不到包‘libcrypto’”。我几个月前修复的相同错误是遵循这个解决方案:https : //github.com/scipr-lab/libsnark/issues/99 我今天尝试了这个解决方案,但它不再起作用了。(我也试过“brew install openssl,brew info openssl”)没有运气。你以前见过这个吗?你能帮忙看看吗?
-- Checking for module 'libcrypto'
-- No package 'libcrypto' found
CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:458 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal)
PlaylistParser/src/CMakeLists.txt:2 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
Run Code Online (Sandbox Code Playgroud)