Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
I am using react-native v0.59.9 which uses gradle v5.4.1.
While building using ./gradlew assembleRelease, I get the warning
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
On running ./gradlew assembleRelease --warning-mode all, the warning changed to:
> Task :react-native-gesture-handler:generateReleaseRFile UP-TO-DATE
Changing the value for a property with a final value has been deprecated. This will fail with an error in Gradle 6.0.
I had the same problem
+1 how to fix
+1 and me
Same error
I get following error in "react-native": "0.60.0", "react-native-gesture-handler": "^1.3.0",
Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac'.
+1 Same error with "react-native": "0.60.0", "react-native-gesture-handler": "^1.3.0"
npm I jetifier
npx jetify
Fixed it for me on react-native 0.60.0
the same for me! and @jayan2019 solution didn't solve it!
@blueturtle13g I had build issue in react-native 0.60.0
If you have build issue, Use the following link. It will solve the build issue https://github.com/mikehardy/jetifier
@jayan2019 you right, following the library steps solved it. thanks!
Things that worked for me: First, use Android Studio's refactoring tool to convert your app re: the Android developer docs npm install --save-dev jetifier npx jetify npx react-native run-android (your app should correctly compile and work) Call npx jetify run in the postinstall target of your package.json (Any time your dependencies update you have to jetify again)
Taken from: https://github.com/mikehardy/jetifier
"react-native": "0.60.0" I had the same problem
npm I jetifiernpx jetifyFixed it for me on react-native 0.60.0
I applied this in my RN0.60.0 and generate APK but still facing the same issue
Same issue here (RN 0.60.0). Jetify doesn't fix it...
same problem +1. Jetify didn't help
Same problem. Jetify didn't help. React native version 0.60.5
Same problem, tried to reinstall, clear cache,etc. I was not able to solve it. please help "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0."
I got this issue after set def enableSeparateBuildPerCPUArchitecture = true and
def enableProguardInReleaseBuilds = true on android/app/build.gradle
Resolve after set back the value to false.
@jayan2019 Thank you, You saved my time.
npm I jetifier npx jetify
These solved my problem.
@jayan2019 's Solution worked for me as well, thanks.