Giter Club home page Giter Club logo

Comments (6)

github-actions avatar github-actions commented on June 20, 2024
⚠️ Unsupported Version of React Native
ℹ️ It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

from react-native.

github-actions avatar github-actions commented on June 20, 2024
⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

from react-native.

brien-crean avatar brien-crean commented on June 20, 2024

It looks like you have set your minSdkVersion to 24 @Abhishek-Khanduri so perhaps this is relevant to you

from react-native.

cortinico avatar cortinico commented on June 20, 2024

This is my code in app/build.gradle

This is how the app/build.gradle file should look like in a 0.71 project:
https://github.com/facebook/react-native/blob/0.71-stable/template/android/app/build.gradle

So your application is definitely misconfigured @Abhishek-Khanduri

from react-native.

sudhanshu-busy avatar sudhanshu-busy commented on June 20, 2024

my minSdkVersion is 21 but i am facing this same issue multiple of times. @cortinico @brien-crean

from react-native.

Abhishek-Khanduri avatar Abhishek-Khanduri commented on June 20, 2024

@sudhanshu-busy I followed a systematic approach to troubleshoot and resolve the crash issue with our React Native app on an Android 10 device. Here are the steps I took:

Set Up Sample App:

  • Created a fresh sample app using React Native 0.71.0.
  • Disabled Hermes.
  • Tested the sample app on an Android 10 device, and it worked as expected without any crashes.

Configuration Transfer:

  • Moved multiple configuration files(build.gradle and app/build.gradle) from the sample app to our app.
  • With these minimal changes, our app worked without crashing.

Incremental Configuration Addition:

  • Gradually re-added all additional configurations that had been added during the development of our app.
  • Monitored the app's behavior after each addition.

Identified Problematic Code Snippet:

  • Discovered a code snippet related to file versioning that was affecting the specific file versions being added to the APK.
    Noted that this snippet was not present in the sample app's configuration.

Isolated the Issue:

  • Upon re-adding the problematic snippet, the app encountered the same error related to the Hermes engine that had been occurring for the past week.

This is the code snippet that we suspect that is causing the issue

allprojects {
    repositories {
        maven {
            url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
        }
        configurations.all {
            resolutionStrategy {
                eachDependency { DependencyResolveDetails details ->
                    if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
                        def file = new File("$rootDir/../node_modules/react-native/package.json")
                        def version = new groovy.json.JsonSlurper().parseText(file.text).version
                        details.useVersion version
                    }
                }
            }
        }
    }
}

You can use similar approach to back trace the root cause

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.