-
-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac' #647
Comments
same issue on rn 0.60 |
same issue after refactoring support library to androidx |
any solution ? |
any solution ??? |
Solved by rolling back to appcompat-v7:28.0.0 Android support libraries and |
@nikopolidi |
I was able to follow this documentation. 1º Click in react-native-gesture-handler project on android studio |
@mayermatheus I think I tried that already and it didn't work. I'll try again. Thank you |
e..... any solution RN 60 |
fixed it for me on rn 0.6 |
This fixed it for me. Thank you ! |
@boazeb |
What did work is to downgrade React Native and do following:
Warning: watch out "npm audit fix" since it will return react-native version to 0.60 - the latest for this moment. |
@boazeb thank you, works with 0.6 now. and i've learned something new https://stackoverflow.com/questions/51680671/what-is-jetifier |
@boazeb Thank u so much.!! |
@boazeb Thank you so much !!! It worked like magic |
It works, Thanks |
@zmGitHub It works, thanks. |
How do this using yarn? |
1.- Add jetifier as dev dependency 2.- Add a task in package.json inside of "scripts" tag,
3.- Run as yarn |
@isaax2 thanks this works... Please update step one like this yarn add jetifier --dev |
nothing Above Works |
@boazeb it fixes my issues perfectly! Awesome! |
@deepakgd thanks it's done. |
This alone did not fix the issue for me. I also had to open the Refactor menu in Android Studio and click "Migrate to AndroidX...". After doing so, building the project succeeded again. |
try adding this in android/app/build.gradle -> dependencies {} . It solved my problem after upgrading RN to v0.60.4 |
If you get an error in Android studio after this about launching activity not found then go File -> Invalidate Caches/restart. |
Works here! Thanks bro! |
I feel like people have started to go off-topic in this thread. The OP here has an issue with gesture handler on pre-0.60 so the solutions here don't apply for that. For anybody that is still on pre-0.60, this can actually be a different module that accidentally imports AndroidX libraries. In my case it was rn-fetch-blob |
@TheTimeWalker So, what did you do to fix it? Did you revert to a specific version of rn-fetch-blob? I'm having this issue too with 0.59, and I also use rn-fetch-blob. |
I accidentally updated which is only usable if you have RN 0.60. I reverted to v0.10.15 which is the last compatible version for 0.59 and now the error magically disappeared for gesture-handler So in general, try to find any modules you have installed with a version that has implemented AndroidX support. These override settings and break gesture-handler |
0.60.4 Works here! Thanks! |
Placed |
0.59.5 Works here! Thanks!! |
Thank you! |
I'm on react-native 0.59.9, and rolling back to version 1.2.1 worked for me |
can anyone tell me how to resolve this error?
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-gesture-handler:checkDebugManifest'. |
on "react-native": "0.59.10" this works for me
|
Works for me on 0.59.1! |
npx react-native run-android
FAILURE: Build failed with an exception.
BUILD FAILED in 3s |
in gadle.properties After that install jetifier fixed it for me on react-native 0.60.0 |
Should be resolved. If that's not a case, please respond. |
This worked for me:
|
@cameronmbacon what was your react-native version. Cause i am trying to install react-native-gesture-handler however i get this react-native-gesture-handler:compileDebugKotlin failed with react-native 0.66.1 |
@Ali-TM-original I also got the same issue with you. here's my versions: |
@hpelitebook745G2 Well i reverted back to react native 62 it seemed to work, I recently upgraded react-native version to 67 and it worked for some reason. None of the solutions mentioned here worked for me. |
in react native project any help
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. |
I am fixing a incompatibility issue related to AndroidX by adding 2 lines to gradle.properties under android for my RN 0.59.5 project.
Now there is another error with run-android related to react-native-gesture-handler. Then I yarn remove the current react-native-gesture-handler of 1.2.0 and add it back. The new version is 1.3.0. Here is the error:
The error is related 6 packages missing and I guess it is still related to Androidx. But I have no clue how to fix it. There is an issue post#510 suggesting downgraded to version 1.0.5 for fixing but I wouldn't like to use such an old version.
The text was updated successfully, but these errors were encountered: