系统相关
首页 > 系统相关> > Ubuntu 18.04 React Native运行Android javax.net.ssl.SSLException

Ubuntu 18.04 React Native运行Android javax.net.ssl.SSLException

作者:互联网

当我在Ubuntu 18.04上运行react-native run-android命令时,它显示-

Exception in thread “main” javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

解决方法:

我运行sudo rm / etc / ssl / certs / java / cacerts,然后运行sudo update-ca-certificates -f.这样可以解决问题

标签:react-native,ubuntu-18-04,android
来源: https://codeday.me/bug/20191025/1926486.html