react-native-clipboard / clipboard

React Native Clipboard API for both iOS and Android.
MIT License
669 stars 118 forks source link

[Android-New Arch] Cannot specify link libraries for target "react_codegen_RNCClipboard" which is not built by this project #205

Open nguyenduythuc opened 9 months ago

nguyenduythuc commented 9 months ago

Environment

System: OS: macOS 13.2.1 CPU: (8) arm64 Apple M1 Memory: 100.86 MB / 16.00 GB Shell: version: 5.8.1 path: /bin/zsh Binaries: Node: version: 18.17.1 path: ~/.nvm/versions/node/v18.17.1/bin/node Yarn: version: 1.22.19 path: /opt/homebrew/bin/yarn npm: version: 9.6.7 path: ~/.nvm/versions/node/v18.17.1/bin/npm Watchman: version: 2023.01.23.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.12.1 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

Platforms

Android

Versions

Description

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.

See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings 582 actionable tasks: 559 executed, 23 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running 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

No modules to process in combine-js-to-schema-cli. If this is unexpected, please check if you set up your NativeComponent correctly. See combine-js-to-schema.js for how codegen finds modules. No modules to process in combine-js-to-schema-cli. If this is unexpected, please check if you set up your NativeComponent correctly. See combine-js-to-schema.js for how codegen finds modules. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-camera/android/src/main/java/com/google/android/cameraview/Camera2.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/@react-native-camera-roll/camera-roll/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/@react-native-camera-roll/camera-roll/android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollPackage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/@react-native-clipboard/clipboard/android/src/main/java/com/reactnativecommunity/clipboard/ClipboardModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-document-picker/android/src/main/java/com/reactnativedocumentpicker/DocumentPickerModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: [2] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule, com.dylanvann.fastimage.FastImageOkHttpProgressGlideModule] Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-image-picker/android/src/main/java/com/imagepicker/Utils.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-localization/android/src/main/java/com/babisoft/ReactNativeLocalization/ReactNativeLocalization.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-navigation-bar-color/android/src/main/java/com/thebylito/navigationbarcolor/NavigationBarColorModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-permissions/android/src/main/java/com/zoontek/rnpermissions/RNPermissionsPackage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-sensitive-info/android/src/main/java/dev/mcodex/RNSensitiveInfoModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/VirtualView.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-vector-icons/android/src/newarch/java/com/oblador/vectoricons/VectorIconsModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-version-number/android/src/main/java/com/apsl/versionnumber/RNVersionNumberModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/react-native-video/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/thucnguyenduy/Documents/mobile/SubWallet-Mobile/node_modules/rn-android-keyboard-adjust/android/src/main/java/com/tclado/androidkeyboardadjust/RnAndroidKeyboardAdjustModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

Reproducible Demo

prakarti-shush commented 9 months ago

having similar issue any solution ?

shivanip-iprogrammer commented 9 months ago

Facing this same issue, any solution ?

sagarj-iprogrammer commented 9 months ago

tried with v1.11.2 work for me

BrunoADPaixao commented 9 months ago

tried with v1.11.2 work for me

Facing the same error even at v1.11.2

mk04366 commented 9 months ago

Facing same issue.

pietro-marrone-dka commented 9 months ago

Same

kimjisena commented 9 months ago

Facing the same issue. I haven't gotten a solution yet.

kimjisena commented 9 months ago

Downgrading to v1.11.1 solved the issue for me.

mk04366 commented 8 months ago

Downgrading to v1.11.1 solved the issue for me.

Didn't work for me :(

kimjisena commented 8 months ago

Downgrading to v1.11.1 solved the issue for me.

Didn't work for me :(

Delete node_modules and reinstall dependencies. Also, I recommend using Android Studio to build your project. That way you get more insightful debugging information.

dankocher commented 8 months ago

Version 1.11.2 is worked for me.

Make sure you have

"@react-native-clipboard/clipboard": "1.11.2",

without ^

sagarjeu commented 8 months ago

@dankocher have you tried with deleting node module and reinstall app

sagarj-iprogrammer commented 8 months ago

Version 1.11.2 is worked for me.

Make sure you have

"@react-native-clipboard/clipboard": "1.11.2",

without ^

@dankocher work for me Thanks !!

dankocher commented 8 months ago

@dankocher have you tried with deleting node module and reinstall app

Yes, I tried it. But not worked. Only worked after remove ^

mrshahzeb7 commented 7 months ago

Version 1.11.2 is worked for me.

Make sure you have

"@react-native-clipboard/clipboard": "1.11.2",

without ^

It worked for me as well, was facing issue on latest version