2

I am trying to enable SSL Pinning in my react native App.

I am using the SSL RN module (Link) and I have already done

  1. installation.
  2. implementation with the private route.

but I am stuck Task :react-native-ssl-pinning:generateDebugRFile FAILED

I am getting this error while trying to do npx react-native run-android

Error Stack Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings 334 actionable tasks: 10 executed, 324 up-to-date [Fatal Error] okhttp-urlconnection-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okio-2.6.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-urlconnection-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-urlconnection-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-urlconnection-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-urlconnection-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] okhttp-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog. [Fatal Error] logging-interceptor-4.9.0.pom:2:1: Content is not allowed in prolog.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-ssl-pinning:generateDebugRFile'.

Could not resolve all files for configuration ':react-native-ssl-pinning:debugCompileClasspath'. Could not resolve com.squareup.okhttp3:logging-interceptor:4.9.0. Required by: project :react-native-ssl-pinning > Could not resolve com.squareup.okhttp3:logging-interceptor:4.9.0. > Could not parse POM https://jcenter.bintray.com/com/squareup/okhttp3/logging-interceptor/4.9.0/logging-interceptor-4.9.0.pom > Content is not allowed in prolog. > Could not resolve com.squareup.okhttp3:logging-interceptor:4.9.0. > Could not parse POM https://repo.maven.apache.org/maven2/com/squareup/okhttp3/logging-interceptor/4.9.0/logging-interceptor-4.9.0.pom > Content is not allowed in prolog. > Could not resolve com.squareup.okhttp3:logging-interceptor:4.9.0. > Could not parse POM https://repo.maven.apache.org/maven2/com/squareup/okhttp3/logging-interceptor/4.9.0/logging-interceptor-4.9.0.pom > Content is not allowed in prolog. > Could not resolve com.squareup.okhttp3:logging-interceptor:4.9.0. > Could not parse POM https://jcenter.bintray.com/com/squareup/okhttp3/logging-interceptor/4.9.0/logging-interceptor-4.9.0.pom > Content is not allowed in prolog. > Could not resolve com.squareup.okhttp3:logging-interceptor:4.9.0. > Could not parse POM https://repo.maven.apache.org/maven2/com/squareup/okhttp3/logging-interceptor/4.9.0/logging-interceptor-4.9.0.pom > Content is not allowed in prolog.

Versions in Use React native: 0.65.1 RN SSL-Pinning:^1.5.5

Thanks in advance

0 Answers0