Home > Blockchain >  Caused by: org.gradle.api.GradleException: Cannot find a version of 'com.google.protobuf:protob
Caused by: org.gradle.api.GradleException: Cannot find a version of 'com.google.protobuf:protob

Time:01-31

I am facing an error while building an android app with react-native, If anyone has an idea then help me out.

Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.google.protobuf:protobuf-javalite:{strictly [3.0, 4.0[}.
     Required by:
         project :app > project :logrocket_react-native
      > Cannot find a version of 'com.google.protobuf:protobuf-javalite' that satisfies the version constraints:

This is my logrocket version:

"@logrocket/react-native": "1.6.2",

CodePudding user response:

Just started getting the same issue on native Android today.

Could not resolve com.google.protobuf:protobuf-javalite:{strictly [3.0, 4.0[; prefer 3.19.1}. Required by: project :app > com.logrocket:logrocket:1.11.0 > Could not resolve com.google.protobuf:protobuf-javalite:3.22.0-RC1. > Could not parse POM https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-javalite/3.22.0-RC1/protobuf-javalite-3.22.0-RC1.pom > Could not find com.google.protobuf:protobuf-parent:3.22.0-RC1.

Tried upping and downgrading logrocket version, checking out a commit in my project from when it was still working, etc, but it's still bugged. Seems like an issue from logrocket.

CodePudding user response:

Yea, tried setting protobuf version between 3.0 to 4.0, cleared cache, re-built the app, still no luck. Disabled log-rocket for now, till a solution is found.

  • Related