-
Notifications
You must be signed in to change notification settings - Fork 145
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
Task :react-native-community_clipboard:compileDebugJavaWithJavac FAILED #219
Comments
Any Fix for this?? |
I had the same problem; The environment is the same as our friends above. |
I've been struggling with the same problem since this morning. It took me 2 hours and I still couldn't find a solution. |
Currently I am using |
@react-native-community/clipboard has been renamed to @react-native-clipboard/clipboard, what means that @react-native-community/clipboard is outdated (last release 3 years ago) and seems not to be compatible with latest react-native anymore. |
|
My friends, i did some tests. Maybe the problem is related to the jdk and sdk versions that is used. as mentioned here: Setting up the development environment you should have this:
Using this in my environment solved the problem for the last version (1.13.2) |
I had the same problem after upgrading RN. I changed path of @react-native-community/clipboard in package.json with react-native-clipboard/clipboard and it worked for me
|
"@react-native-clipboard/clipboard": "^1.13.2", you need this package instead of this "@react-native-community/clipboard": this thing work for me |
this package is outdated now but if you want a solution for the problem you have you can do the following and replace this file content with this code
|
@FouadMagdy01 |
Use the patch-package package to share the changes with your team. |
I know that and in most cases it is not the best solution to fix bugs in node modules But there are some workarounds as @kimjisena mentioned below |
This worked for me! |
Environment
Macbook M1
Platforms
Android
Versions
"react": "18.2.0",
"react-native": "0.73.2",
"@react-native-community/clipboard": "^1.5.1",
Description
After installing @react-native-community/clipboard Unable to run the project.
Error : ClipboardModule.java:14: error: cannot find symbol
import com.facebook.react.bridge.ContextBaseJavaModule; ^ symbol: class ContextBaseJavaModule location: package com.facebook.react.bridge
The text was updated successfully, but these errors were encountered: