Giter Club home page Giter Club logo

Comments (6)

netmaxt3r avatar netmaxt3r commented on August 21, 2024 1

@AndersonVanzo
you are facing this issue because desugring rewrites java.util.OptionalInt to j$.util.OptionalInt which will fail on any JNI binding from native code.

I see your device spec says android 7.0 firmware is available, you could try update it 7.0 and raise minsdkVersion.

you could also try with com.android.tools:desugar_jdk_libs_minimal:2.0.4 instead of coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4' and make sure it works on device, most probably it wont

from react-native.

github-actions avatar github-actions commented on August 21, 2024
⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.74.3. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

from react-native.

AndersonVanzo avatar AndersonVanzo commented on August 21, 2024

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.74.3. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

The reproducer was made with RN 0.74.3 and the problem still exists

from react-native.

netmaxt3r avatar netmaxt3r commented on August 21, 2024

@AndersonVanzo is it possible to bump your minSdkVersion to 24 reproducer app starts with this change alone

from react-native.

AndersonVanzo avatar AndersonVanzo commented on August 21, 2024

@netmaxt3r I can't change minSdkVersion to 24 because the target device (this one) uses Android 6.0 (SDK 23)

from react-native.

cortinico avatar cortinico commented on August 21, 2024

The answer provided by @netmaxt3r is excellent!

We don't support this out of the box, plus we're also about to bump the minSdk to 24 in an upcoming version of RN (see react-native-community/discussions-and-proposals#802).

What I can reccomend to try @AndersonVanzo is to:

  1. Switch to build from source https://reactnative.dev/contributing/how-to-build-from-source
  2. Remove the OptionalInt parameter from those places:


    (you'll also have to update all the callsites).

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