0

i am trying to create a react native project i have 2 android devices 1 is running android 9 and 1 is running android 12 my app is getting is installing and running on device that has android 9 but my app is not running on android 12

i get the following error

> Task :app:installDebug
Installing APK 'app-debug.apk' on '2201117PI - 12' for :app:debug

> Task :app:installDebug 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.


enter image description here

enter image description here

21
  • try ./gradlew -stop and rebuild project ref from -: github.com/facebook/react-native/issues/33488
    – Ragnar
    Commented Nov 25, 2022 at 6:14
  • accoding to that document i run the commad inside android folder i get this error '.' is not recognized as an internal or external command, operable program or batch file. @sandeepsingh
    – vivek kn
    Commented Nov 25, 2022 at 6:33
  • Are you running in windows, then it is gradlew not ./gradlew. on your question: Some of your node packages are using deprecated methods of the latest Gradle. You can downsize your Gradle in android/gradle/gradle-wrapper.properties Commented Nov 29, 2022 at 5:16
  • 'gradlew' is not recognized as an internal or external command, operable program or batch file. @vijeeshin i am getting this error
    – vivek kn
    Commented Nov 29, 2022 at 5:18
  • @menucd are you running it in root folder, run it in android folder Commented Nov 29, 2022 at 5:21

1 Answer 1

-3

In terminal, enter the android folder with

cd android

then run

.\gradlew clean

After that your app should run.

5
  • > Task :app:installDebug FAILED w: Detected multiple Kotlin daemon sessions at build\kotlin\sessions Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    – vivek kn
    Commented Dec 2, 2022 at 8:12
  • i am getiing foloowing error now
    – vivek kn
    Commented Dec 2, 2022 at 8:12
  • try this: github.com/facebook/react-native/issues/… Commented Dec 2, 2022 at 13:53
  • still getting this error
    – vivek kn
    Commented Dec 3, 2022 at 5:42
  • > Task :app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    – vivek kn
    Commented Dec 3, 2022 at 5:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.