Giter Site home page Giter Site logo

Comments (11)

simonbengtsson avatar simonbengtsson commented on August 10, 2024 1

I was getting the same thing, but was able to build by changing kotlinOptions.jvmTarget from 18 to 17 (same as the jvmToolchain version) in both our app/build.gradle and node_modules/@stripe/stripe-terminal-react-native/android/build.gradle.

In the stripe-terminal-react-native/build.gradle I I also updated the stripe-terminal-android version to the just released 3.2.1 version which supports api level 34.

Note that kotlinOptions.jvmTarget is deprecated since gradle 8 so can be removed as well https://docs.gradle.org/current/userguide/upgrading_version_7.html#kotlin_dsl_plugin_toolchains

from stripe-terminal-react-native.

prcostello avatar prcostello commented on August 10, 2024 1

Any updates on a more automatic solution for this at the project level? This is causing additional setup time for our development team and we are having a hard time finding a solution. As well since this is a package build.gradle file we cannot commit these changes for others to use.

from stripe-terminal-react-native.

igscl avatar igscl commented on August 10, 2024
    "react": "18.2.0",
    "react-native": "0.73.0"

from stripe-terminal-react-native.

igscl avatar igscl commented on August 10, 2024

We solved this one earlier today by doing something similar, but we changed the sourceCompatibility options as well for node_modules/@stripe/stripe-terminal-react-native/android/build.gradle, so your solution might be the right way to do it. Thanks so much for responding! This one caused so much pain to debug.

        compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = "17"
    }

from stripe-terminal-react-native.

eladgel avatar eladgel commented on August 10, 2024
"react": "18.2.0",
"react-native": "0.72.6",
"@stripe/stripe-terminal-react-native": "^0.0.1-beta.14",

We have the same issue, the proposed solution is not working

from stripe-terminal-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.