square / react-native-square-reader-sdk

React Native Plugin for Square Reader SDK
Apache License 2.0
117 stars 36 forks source link

Android Example Project Build Failed #184

Closed zacdemi closed 2 years ago

zacdemi commented 2 years ago

Describe the issue

When I try to build the example project I get this error.

Error log details:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-square-reader-sdk:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':react-native-square-reader-sdk:debugCompileClasspath'.
   > Failed to transform bcprov-jdk15on-1.70.jar (org.bouncycastle:bcprov-jdk15on:1.70) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Execution failed for JetifyTransform: /Users/zacdemi/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.70/4636a0d01f74acaf28082fb62b317f1080118371/bcprov-jdk15on-1.70.jar.
         > Failed to transform '/Users/zacdemi/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.70/4636a0d01f74acaf28082fb62b317f1080118371/bcprov-jdk15on-1.70.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 59. (Run with --stacktrace for more details.)
           Suggestions:
            - Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
            - If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 35s

To Reproduce

Expected behavior

Environment (please complete the following information):

Screenshots

Additional context

zacdemi commented 2 years ago

resolved by adding bcprov-jdk15on-1.70.jar to the ignore list in gradle.properties android.jetifier.ignorelist=moshi-1.13.0,bcprov-jdk15on-1.70.jar

CharmisG commented 2 years ago

@zacdemi The issue is resolved. take a pull from the latest code and feel free to reopen this issue if you are facing the same.