Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error while running npx react-native run-android #163

Open
deepaksharma9dev opened this issue Jul 8, 2022 · 1 comment
Open

Comments

@deepaksharma9dev
Copy link

Hello experts,

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

@sbozzella
Copy link

Hi, are there any updates about this issue? I am receiving the same error :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants