#ignignign

1 messages · Page 1 of 1 (latest)

charred trellisBOT
astral glacier
#

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

cloud dome
#

Hi @astral glacier , it is, i've tried changing those - same result.

cloud dome
#

hi @vernal wagon , I think Jack is offline

#

been trying to solve this with no luck

vernal wagon
#

Hi sorry we might be back after a while, let me ping him

charred trellisBOT
astral glacier
#

Hi @cloud dome thanks for waiting

cloud dome
#

no worries @astral glacier

astral glacier
#

Do you get the error if you compile from command line? i.e., ./gradlew installDebug

cloud dome
#

yep

astral glacier
#

Can you send me the whole build.gradle file?

cloud dome
#

sure

astral glacier
#

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

cloud dome
#

i did npm install @stripe/stripe-terminal-react-native

#

oh yeah i did add that line manually, trying to make this work

astral glacier
#

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?

cloud dome
#

"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

astral glacier
#

Did you use npx react-native init TerminalDemo to create a react-native project?

cloud dome
#

yep

astral glacier
#

Ok. Let me try if I can reproduce the problem

cloud dome
#

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

astral glacier
#

How did you fix the warning about minsdk ?

cloud dome
#

build.gradle

#

buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.0"

astral glacier
#

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
cloud dome
#

oh maybe i don't run into that anymore as i'm running java 17 as my local JAVA_HOME environment

astral glacier
#

Let me update org.gradle.java.home, one sec

#

Ok I can reproudce the problem now

cloud dome
#

well that's great news for me, means i haven't been going crazy for no reason haha

#

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

astral glacier
#

I'm afraid that I can't find a solution to solve this problem.

cloud dome
#

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."

astral glacier
#

That works, remember to include to the steps to reproduce