Closed AyushG3112 closed 3 years ago
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 jetifier
npx jetify
Fixed 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.
still same issue after trying all
+Same Issue for me..... anybody fixed it?
+Same Issue for me..... anybody fixed it?
Which react-native version are you using?
In "react-native": "0.60.5"
already have jetifier on it.
+1 having this issue with 0.60.5
+1 also having this issue with 0.60.5 jetify didn't work either
Same issue with RN 0.61.2 and also testing with jetifier
Had the same issue. Turned out to be an easy fix. Remove the old version of the app on my device. maybe this will help others.
i had the same problem got fixed after i used File\Invalidate cache/restart of android studio
@jayan2019 thumbs up for you
If using usb device try change usb port.
It worked for me after I applied this:
node_modules\metro-config\src\defaults\blacklist.js
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
System: OS: Windows 10 CPU: (2) x64 AMD A4-6300 APU with Radeon(tm) HD Graphics Memory: 1.49 GB / 7.21 GB Binaries: Node: 12.13.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 23, 27, 28 Build Tools: 23.0.1, 27.0.3, 28.0.3 IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.3 => 0.61.3
npm I jetifier
npx jetify
Fixed it for me on react-native 0.60.0You saved me!! It worked for me after I applied this:
node_modules\metro-config\src\defaults\blacklist.js var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];
System: OS: Windows 10 CPU: (2) x64 AMD A4-6300 APU with Radeon(tm) HD Graphics Memory: 1.49 GB / 7.21 GB Binaries: Node: 12.13.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 23, 27, 28 Build Tools: 23.0.1, 27.0.3, 28.0.3 IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.3 => 0.61.3
@jayan2019
Hi All, I realized that the problem was with the Node version... i changed to v 12.10... and all got fine, not necessary to change any node_modules manually, which is very bad for the development.
None of these solutions work
"react": "16.8.6" "react-native": "0.60.5"
None of these solutions work
"react": "16.8.6" "react-native": "0.60.5"
Try to use node v12.10
I run
cd android && ./gradlew clean && ./gradlew :app:bundleRelease
It solved my problem.
Hi I used this :
and it worked for me
It worked for me after I applied this:
node_modules\metro-config\src\defaults\blacklist.js var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];
System: OS: Windows 10 CPU: (2) x64 AMD A4-6300 APU with Radeon(tm) HD Graphics Memory: 1.49 GB / 7.21 GB Binaries: Node: 12.13.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 23, 27, 28 Build Tools: 23.0.1, 27.0.3, 28.0.3 IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.3 => 0.61.3
Worked for me. react-native 0.61
This worked for me https://stackoverflow.com/a/51610775
use jetifier...it helped 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)
original link https://github.com/mikehardy/jetifier
I run
cd android && ./gradlew clean && ./gradlew :app:bundleRelease
It solved my problem.
Help a lot!! Cleaning the android project by using gradlew
I've deleted my node_modules
folder and run npm install
again.
Now it works fine for me.
react-native: 0.61.5
react: 16.9.0
node: 12.13
I run
cd android && ./gradlew clean && ./gradlew :app:bundleRelease
It solved my problem.
it works, thanks
I just updated my Node to 12.16.1 and worked.
same issue on node: 12.16.1
& "react-native": "0.61.5"
npm I jetifier
npx jetify
Fixed it for me on react-native 0.60.0
gracias por el consejo y ayuda
Try restarting metro server once . It worked perfectly for me.
I had the same problem and i solve reinstall version 8 of the Java SE Development Kit (JDK). In react native documentation is a getting started, in this part have how instal JDK. I use https://adoptopenjdk.net/ for download.In the site, bottom have part "instalation", so you can acess and select your SO(Sorry my english)
i have the same problem withe react-native 0.61.5 plz help me i m beginner
To solve the problem you need to locate this file (gradle-wrapper.properties) The file is located in d path (android/gradle/wrapper) in your project folder....open the file and change this line distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip to this distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
I run
cd android && ./gradlew clean && ./gradlew :app:bundleRelease
It solved my problem.
thank u my project using RN "react": "16.8.1", "react-native": "^0.61.0",
yess It solved my problem.
I am using react-native v0.59.9 which uses gradle v5.4.1.
While building using
./gradlew assembleRelease
, I get the warningOn running
./gradlew assembleRelease --warning-mode all
, the warning changed to: