gpt4 book ai didi

react-native - react native trustkit 依赖项 : could not find com. datatheorem.truskit:trustkit-android

转载 作者:行者123 更新时间:2023-12-03 14:32:05 33 4
gpt4 key购买 nike

我正在按照本指南设置 trustkit SSL pinning:
https://github.com/datatheorem/TrustKit-Android

我在尝试安装信任工具包依赖项时遇到错误

我的 build.gradle 看起来像这样

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'com.datatheorem.truskit:trustkit-android:1.1.3'

if (enableHermes) {
def hermesPath = "../../node_modules/hermesvm/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
}

错误:
 Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not find com.datatheorem.truskit:trustkit-android:1.1.3.
Searched in the following locations:
- file:/Users/omar/.m2/repository/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.pom
- file:/Users/omar/.m2/repository/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.jar
- file:/Users/omar/workspace/js/contextful/node_modules/react-native/android/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.pom
- file:/Users/omar/workspace/js/contextful/node_modules/react-native/android/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.jar
- file:/Users/omar/workspace/js/contextful/node_modules/jsc-android/dist/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.pom
- file:/Users/omar/workspace/js/contextful/node_modules/jsc-android/dist/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.jar
- https://www.jitpack.io/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.pom
- https://www.jitpack.io/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.jar
- https://maven.google.com/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.pom
- https://maven.google.com/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.jar
- https://dl.google.com/dl/android/maven2/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.pom
- https://dl.google.com/dl/android/maven2/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.jar
- https://jcenter.bintray.com/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.pom
- https://jcenter.bintray.com/com/datatheorem/truskit/trustkit-android/1.1.3/trustkit-android-1.1.3.jar
Required by:
project :app

最佳答案

解决方案:

使用这样的实现 Docs

implementation 'com.datatheorem.android.trustkit:trustkit:1.1.3'

我有 测试 .这是工作

——

问题:

不要使用 低于依赖项,因为它不存在
implementation 'com.datatheorem.truskit:trustkit-android:1.1.3'

关于react-native - react native trustkit 依赖项 : could not find com. datatheorem.truskit:trustkit-android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62150397/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com