datatheorem / TrustKit-Android

Easy SSL pinning validation and reporting for Android.
MIT License
583 stars 87 forks source link

unable to install using the setup guide #75

Closed 0mars closed 3 years ago

0mars commented 4 years ago

I have added the implementation to my build.gradle however it wont install

my build.gradle looks like this

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
    }
}

error:

 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
Hunartimon commented 3 years ago

@0mars Same problem here, seems like the package name is wrong in the "Getting Started guide". The correct package name is in the main readme:

implementation 'com.datatheorem.android.trustkit:trustkit:<last_version>'