npm运行android反应本地给予build立错误
运行react-native run-android
:
JS服务器已经在运行。
在设备上构build和安装应用程序(cd android && ./gradlew installDebug)…
失败:生成失败,出现exception。
- 什么地方出了错:
configuration根项目“推送器”时出现问题。 无法parsingconfiguration':classpath'的所有依赖关系。 无法下载protobuf-java.jar(com.google.protobuf:protobuf-java:2.5.0)无法获取资源https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.5。 0 / protobuf-java-2.5.0.jar '。 无法GET'https: //jcenter.bintray.com/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar '。 sun.security.validator.ValidatorException:找不到可信的证书
- 尝试:运行
--stacktrace
选项来获取堆栈跟踪。 运行--info
或--debug
选项来获得更多的日志输出。
构build失败
我已经安装了SDK工具,并且已经正确回答了本地文档,但是仍然遇到了麻烦。
我正在使用Ubuntu 16。
- 如何在Android中使用retrofit进行POST请求
- 如何使用Android作为客户端访问express.js / passport.js API?
- React Native和Node服务器 – 设备上的节点服务器
- 在没有NPM的情况下使用Firebase应用程序服务器(Node.js)
- socket.io Android库authentication
- IBMCloudCodeHybrid SDK总是在Android上失败
- 如何在现有的PhoneGap应用程序中更新Cordova?
- 基于本地经纪人(MQTT)的发布/订阅使用Android应用程序
- 从Android应用程序发送到nodejs服务器通过HTTP发送后,我的JSON看起来不同