gradle安装报错问题
Posted 波子汽水yeah
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gradle安装报错问题相关的知识,希望对你有一定的参考价值。
localhost:~ root# gradle -v
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff203a15d2, pid=28971, tid=9987
#
# JRE version: (14.0.2+12) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.0.2+12-46, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [libsystem_platform.dylib+0x15d2] _platform_strlen+0x12
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /private/var/root/hs_err_pid28971.log
#
#
Abort trap: 6
解决方案
ulimit -c unlimited
This should solve the problem. To check if the change was successful, run -
ulimit -c -l
localhost:~ maobo$ gradle -v
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff203a15d2, pid=29851, tid=8195
#
# JRE version: (14.0.2+12) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.0.2+12-46, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [libsystem_platform.dylib+0x15d2] _platform_strlen+0x12
#
# Core dump will be written. Default location: /cores/core.29851
#
# An error report file with more information is saved as:
# /Users/maobo/hs_err_pid29851.log
#
Abort trap: 6
不妨跳过这个错误其实好像没有什么影响。猜测可能mac系统升级引起的。一些目录无法写入
以上是关于gradle安装报错问题的主要内容,如果未能解决你的问题,请参考以下文章
错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. ② | 升级 Gradle 版本 )
错误记录Android Studio 编译报错 ( Cannot use connection to Gradle distribution . as it has been stopped. )(代
错误记录Android Gradle 配置报错 ( gradle.properties 配置到 BuildConfig 中需要注意类型转换 | 位置: 类 BuildConfig )
错误记录Android Studio 编译报错 ( Invalid Gradle JDK configuration found )
错误记录Gradle 配置报错 ( Using different JDK locations on different processes might cause Gradle to spa )