Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native-screens:compileDebugKotlin FAILED

I am trying to use React Navigation in my RN project, but when I install react-native-screens, which is a required package for it to work, I cannot build the project again.

The error I get is the following:

Task :react-native-screens:compileDebugKotlin FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

I have tried a few things I saw other people do, but nothing has worked so far.

Can you help me? Thanks

like image 959
MIPB Avatar asked Nov 18 '25 11:11

MIPB


2 Answers

I changed my kotlin version to kotlinVersion = "1.5.31" in android/build.gradle

like image 84
ahmed hassan Avatar answered Nov 20 '25 23:11

ahmed hassan


If you facing this after adding @react-navigation/[email protected] library to a project with react-native @0.69.0 just upgrade [email protected] this specific version

like image 45
Ishara Dilshan Avatar answered Nov 21 '25 00:11

Ishara Dilshan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!