GithubHelp home page GithubHelp logo

Android build error, trying to read hermesEnabled property added in gradle.properties from react-native 0.71.0 about react-native-worklets-core HOT 2 OPEN

margelo avatar margelo commented on May 29, 2024 4
Android build error, trying to read hermesEnabled property added in gradle.properties from react-native 0.71.0

from react-native-worklets-core.

Comments (2)

cfbadr avatar cfbadr commented on May 29, 2024 1

I have this error too.

Does anyone find something, because it's quite a big one.

from react-native-worklets-core.

eisodev avatar eisodev commented on May 29, 2024

It will also not build to Android device (Android 11)/emulator (Android 13) but iOS works on React Native 0.69.12:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not find com.facebook.react:hermes-android:.
     Required by:
         project :app

This is probably because of the change made in 0.71.0 related to:

if (enableHermes) {
    // These lines instruct Gradle to consume the bundled version of Hermes.
    // For further information on Bundled Hermes and how this mechanism works,
    // look here: https://reactnative.dev/architecture/bundled-hermes
    // noinspection GradleDynamicVersion
    implementation("com.facebook.react:hermes-engine:+") { // From node_modules
        exclude group:'com.facebook.fbjni'
    }
} else {
    implementation jscFlavor
}

replaced by

if (hermesEnabled.toBoolean()) {
    implementation("com.facebook.react:hermes-android")
} else {
    implementation jscFlavor
}

This change can be seen in upgrade helper here:
https://react-native-community.github.io/upgrade-helper/?from=0.69.12&to=0.71.0

from react-native-worklets-core.

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.