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

标签 android react-native ubuntu-18.04

当我在 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 。这解决了问题

关于android - Ubuntu 18.04 React Native 运行 Android javax.net.ssl.SSLException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50454564/

相关文章:

android - react native 模态显示超慢 iOS 但不是 Android

docker 登录: Error when manually logging into private Registry

java - 在 ListView 项目上单击,将 Google map 相机移动到指定标记

react-native - react native : How to set height of the child view same as parent view with position=absolute?

android - 动画师类型的预期资源 [ResourceType]

javascript - react native + Redux : Why the error "should not push route with duplicated key"?

python - 如何将所有属性导入 numpy 模块?

jupyter-notebook - 用于在 Jupyter Notebook 中显示命令文档的 Shift Tab 不起作用

android - 调用 getString 时 SQL Cursor 抛出内存不足

java - "Binary XML file line #8: You must supply a layout_width attribute"虽然属性已经存在