首页 > 解决方案 > 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.

它应该为我提供这个包的构建。

标签: androidreact-nativeokhttpokhttp3

解决方案


推荐阅读