-
Notifications
You must be signed in to change notification settings - Fork 148
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
react-native-clipboard_clipboard not working RN 0.75.3 in new architecture #259
Comments
This is the same error I'm getting on RN 0.75.3 |
This seems to fix it |
Thanks @jorgegvallejo Its working for me, can we resolve it without patch. Is there any other fixes. |
Same here. Any prevision to fix by patch? |
Looks like it's fixed now by the latest release? no issues migrating for me anymore |
Yes, it does look like it is fixed. I can confirm I am no longer seeing the issue on Android builds with version 1.14.2. |
0.75.4
|
The issue persists |
if you this type of error the update CLIBOARMODULE class
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor /Users/techveck/JAGTAR/software/knp/AJA/node_modules/@react-native-community/clipboard/android/src/main/java/com/reactnativecommunity/clipboard/ClipboardModule.java:26: error: incompatible types: Context cannot be converted to ReactApplicationContext FAILURE: Build failed with an exception.
BUILD FAILED in 5s WITH THIS WHOLE code and save and run npm run android again
|
Yes, still Its exist FAILURE: Build failed with an exception.
BUILD FAILED in 8m 3s |
Same issue in RN 0.76.0 new architecture |
this PR fixes it #251 |
Is there anyone maintaining this library? We been having this issue since july or before, and there's no fix available, also there are PRs from July fixing it. |
thanks for the ping! released 1.14.3 that will fix the issue 👍 |
Thank you so much @Naturalclar! |
The issue persist in react native 0.76.1 new architecture |
Environment
System:
OS: Windows 11 10.0.22631
CPU: "(4) x64 AMD Ryzen 3 3250U with Radeon Graphics "
Memory: 606.93 MB / 5.89 GB
Binaries:
Node:
version: 21.6.2
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 10.2.4
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "31"
- "33"
- "34"
Build Tools:
- 30.0.3
- 33.0.0
- 34.0.0
System Images:
- android-34 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-231.9392.1.2311.11330709
Visual Studio: Not Found
Languages:
Java: 18.0.2.1
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.75.3
wanted: 0.75.3
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Platforms
Android
Description
Task :react-native-clipboard_clipboard:processDebugManifest
package="com.reactnativecommunity.clipboard" found in source AndroidManifest.xml: D:\Projects\SampleProjects\RN0_75_3\node_modules@react-native-clipboard\clipboard\android\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.clipboard" from the source AndroidManifest.xml: D:\Projects\SampleProjects\RN0_75_3\node_modules@react-native-clipboard\clipboard\android\src\main\AndroidManifest.xml.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
45 actionable tasks: 35 executed, 10 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
D:\Projects\SampleProjects\RN0_75_3\node_modules@react-native-clipboard\clipboard\android\src\main\java\com\reactnativecommunity\clipboard\ClipboardModule.java:39: error: ClipboardModule is not abstract and does not override abstract method removeListeners(double) in NativeClipboardModuleSpec
public class ClipboardModule extends NativeClipboardModuleSpec {
^
D:\Projects\SampleProjects\RN0_75_3\node_modules@react-native-clipboard\clipboard\android\src\main\java\com\reactnativecommunity\clipboard\ClipboardModule.java:240: error: method does not override or implement a method from a supertype
@OverRide
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\Projects\SampleProjects\RN0_75_3\node_modules@react-native-clipboard\clipboard\android\src\main\java\com\reactnativecommunity\clipboard\ClipboardPackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.
Execution failed for task ':react-native-clipboard_clipboard:compileDebugJavaWithJavac'.
BUILD FAILED in 27s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
The text was updated successfully, but these errors were encountered: