#ignignign
1 messages · Page 1 of 1 (latest)
Hi @cloud dome can you check if your Android studio is also using Java 8? You can find it in File Menu->Project Structure->SDK Location->JDK location
Hi @astral glacier , it is, i've tried changing those - same result.
Hi sorry we might be back after a while, let me ping him
Hi @cloud dome thanks for waiting
no worries @astral glacier
Do you get the error if you compile from command line? i.e., ./gradlew installDebug
yep
Can you send me the whole build.gradle file?
Did you include the Stripe terminal react-native SDK by npm install @stripe/stripe-terminal-react-native ? Looks like your manually added it to the dependencies in build.gradle
i did npm install @stripe/stripe-terminal-react-native
oh yeah i did add that line manually, trying to make this work
Ok, you don't need to add it. gradle will automatically include com.stripe:stripeterminal as a dependency
What's the react native version that you are using in your project?
"react": "18.2.0",
"react-native": "0.73.0"
i literally created that project yesterday and proceeded to npm i @stripe/stripe-terminal-react-native
i'll replicate it again in case sometihng went wrong
Did you use npx react-native init TerminalDemo to create a react-native project?
yep
Ok. Let me try if I can reproduce the problem
thank you!
at first it will complain about the minsdk version
and then when you fix that you'll bump into the issue - if it's not a local problem of mine
but i had other people reproduce the same
How did you fix the warning about minsdk ?
build.gradle
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.0"
I didn't encounter the error about minsdk
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.```
But I got this error
oh maybe i don't run into that anymore as i'm running java 17 as my local JAVA_HOME environment
well that's great news for me, means i haven't been going crazy for no reason haha
i'm not sure how to replicate the settings of this one:
https://github.com/stripe/stripe-terminal-react-native
which is what i've been trying to do
but yeah i also don't want to add a bunch of stuff i'm not sure what it's doing
I'm afraid that I can't find a solution to solve this problem.
Can I suggest you to create a github issue ? https://github.com/stripe/stripe-terminal-react-native/issues so that the stripe-react-native-terminal engineer will take a look at it.
sure can, thanks
how would you suggest to title it?
"When creating a new react native project and adding the sdk, it fails to build."
That works, remember to include to the steps to reproduce