Comments (11)
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.
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.
"react": "18.2.0",
"react-native": "0.73.0"
from stripe-terminal-react-native.
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.
"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)
- collectPaymentMethod
- Likely date of next release? HOT 1
- Android build failure: EXPO 49 + 0.0.1-beta.14 HOT 7
- Bug: DiscoverReaders Method Incorrectly Shows Battery Level as 0 for Discovered Readers HOT 3
- Issue with Implementing "Tap to Pay" using Stripe Terminal in React Native App HOT 10
- Mismatch between documentation and types file when calling createSetupIntent HOT 1
- Error: Operation not permitted. Verify the app has the necessary entitlements and that the application bundle is valid. HOT 4
- Can't reconnect local reader on iOS when going background on enter pin screen HOT 3
- Linking account on iOS HOT 3
- Setup intents are not available with Tap to Pay on Android HOT 1
- When calling collectPaymentMethod, the tuple returned is {undefined, undefined}. HOT 1
- When starting a payment using simulated reader, an expired API key is thrown HOT 6
- Android client and server-side payment intent creation fails HOT 4
- MEtadata not being sent to payment intent HOT 1
- Weird error when compatible reader connecting to location HOT 2
- Could not find any matches for com.facebook.react:react-android:+ HOT 1
- Expo 50 build not working on Android HOT 30
- is there a way to work with library without the hook api ? HOT 2
- Expo 50 iOS crashes when calling terminal.initialize HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-terminal-react-native.