skip to Main Content

e: /Users/abc/update/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (29, 33): This declaration is experimental and its usage must be marked with ‘@kotlin.ExperimentalStdlibApi’ or ‘@OptIn(kotlin.ExperimentalStdlibApi::class)’enter image description here

i want to build the native project

2

Answers


  1. Just upgraded to Gradle 7.5.1 and it works. Inside your android directory run:

    ./gradlew wrapper --gradle-version 7.5.1 --distribution-type=all
    
    Login or Signup to reply.
  2. @steformicola answer didn’t work for me but changing the gradle version in

    android/gradle/wrapper/gradle-wrapper.properties

    to distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-all.zip

    worked for me.

    Look at this link for related issues.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search