728x90
반응형
> Task :react-native-gradle-plugin:compileKotlin FAILED
e: /Users/bok/Desktop/DEV/DEV_react-native_221129_2/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/BundleHermesCTask.kt: (137, 11): This declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':react-native-gradle-plugin:compileKotlin'. > Compilation error. See log for more details
Gradle 버전을 올리니 해결되었다.
# android > gradle > wrapper > gradle-wrapper.properties
//before
...
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
//after
...
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
* referece : https://stackoverflow.com/questions/74401011/kotlin-experimentalstdlibapi-or-optinkotlin-experimentalstdlibapiclass
728x90
반응형