Giter Site home page Giter Site logo

Comments (7)

Brunowilliang avatar Brunowilliang commented on August 10, 2024 1

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.

nazli-stripe avatar nazli-stripe commented on August 10, 2024

Do you have JDK 17 installed on the machine?

from stripe-terminal-react-native.

ts-candide avatar ts-candide commented on August 10, 2024

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.

dakkor71 avatar dakkor71 commented on August 10, 2024

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

Noitidart avatar Noitidart commented on August 10, 2024

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)

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.