Skip to content

AGP version conflict with React Native 0.83+ / Gradle 8.x #54

@Rananjaya

Description

@Rananjaya

Have you read the README and looked at the source code to see if you're not doing anything wrong?
If you haven't, please don't open an issue. Try to fix your problem first with what we have!

Yes, I have reviewed the README and source code. This is a build configuration issue in the library's [build.gradle]

Describe the bugThe library's contains a hardcoded Android Gradle Plugin (AGP) version 7.1.1 in the buildscript block, which causes build failures in React Native 0.83+ projects that use Gradle 8.x and AGP 8.1.1+. Gradle 8.x cannot resolve multiple AGP versions in a single build, resulting in dependency resolution failures.

To Reproduce
Steps to reproduce the behavior:

Create a new React Native 0.83+ project
Install react-native-pure-jwt@3.1.0: npm install react-native-pure-jwt
Run cd android && ./gradlew build
See error:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':react-native-pure-jwt'.

Could not resolve all artifacts for configuration ':react-native-pure-jwt:classpath'.
Could not resolve com.android.tools.build:gradle:7.1.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions