android - React Native OkHttpUtils.java 使用或覆盖了已弃用的 API。在 react-native-ssl-pinning
问题描述
提前致谢。当我尝试使用 React native 为 android 构建构建时,我遇到了构建问题。
任何帮助将不胜感激
这发生在安卓上。但是我没有尝试过ios。
ReactNative\sslpin\node_modules\react-native-ssl-pinning\android\src\main\java\com\toyberman\RNSslPinn ingModule.java:221: error: cannot find symbol
@NonNull
^
symbol: class NonNull
location: class RNSslPinningModule
Note: D:\Users\Ankit\Work\ReactNative\sslpin\node_modules\react-native-ssl-pinning\android\src\main\java\com\toyberman\Uti ls\OkHttpUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-ssl-pinning:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
它应该为我提供这个包的构建。
解决方案
推荐阅读
- arrays - 快速将值/参数附加到结构
- sql-server - 通过存储过程根据给定的记录 ID 删除更多记录
- mysql - 在mysql中逐行计算列中的单词
- javascript - 在 Vue.js/Firebase 登录认证界面设置 route-guard
- python - “requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: ...”尝试创建 CloudOCR 对象时
- wordpress - 如何编辑表单注册 wordpress 主题 eduma
- c# - UWP C# 项目中的 HTTP 重定向请求失败
- javascript - 在 Firefox 中通过 AJAX 加载非 XML 数据时出现“XML 解析错误”
- java - 使用 Spring 反序列化请求时如何处理动态 JSON 值类型?
- python - 为什么我会收到错误“NameError: name 'kh' is not defined”