Comments (7)
I had the same problem and it took me some time, so I'll share it with you.
I updated my java to version 17
➜ java -version
openjdk version "17.0.9" 2023-10-17 LTS
OpenJDK Runtime Environment Zulu17.46+19-CA (build 17.0.9+8-LTS)
OpenJDK 64-Bit Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode, sharing)
and I also updated "expo-build-properties" to this:
[
"expo-build-properties",
{
"android": {
"minSdkVersion": 26,
"compileSdkVersion": 34,
"targetSdkVersion": 34,
"buildToolsVersion": "34.0.0",
"packagingOptions": {
"pickFirst": ["org/bouncycastle/x509/CertPathReviewerMessages*"]
}
},
"ios": {
"deploymentTarget": "13.0"
}
}
]
I hope this helps you
from stripe-terminal-react-native.
Do you have JDK 17 installed on the machine?
from stripe-terminal-react-native.
Just to note that I upgraded yesterday with Expo 49 and it is building ok, all be it with the workaround described here for Android. As you suggested @nazli-stripe my local machine has Java 17 installed.
$ java -version
openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode)
from stripe-terminal-react-native.
@nazli-stripe Your question helped me to find the issue. Thanks!
I used JDK 11 to build the app in expo CI/CD, so changing the Android image to the most recent one fixed the issue.
from stripe-terminal-react-native.
I'm using Expo 50 and @Brunowilliang solution is not working anymore I get this error on Expo build pipeline:
'compileDebugJavaWithJavac' task (current target is 17) and 'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
from stripe-terminal-react-native.
Related Issues (20)
- collectPaymentMethod
- Likely date of next release? HOT 1
- 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
- When creating a new react native project and adding the sdk, it fails to build. HOT 17
- 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.