datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

@react-native-community/datetimepicker not compatible with RN .73.1

Open brandon-austin-lark opened this issue 1 year ago • 2 comments

Bug report

Summary

Builds are failing with RN version .73.1 with new architecture installed

Steps to reproduce

  1. Create a react native project with .73.1
  2. Install the latest datetimepicker (currently 7.6.2)

Describe what you expected to happen:

  1. I expect a successful build

datetimepicker version: 7.6.2

iOS / Android version: x.x

brandon-austin-lark avatar Dec 21 '23 19:12 brandon-austin-lark

After running a ./gradlew clean and a subsequent ./gradlew assembleRelease in the android directory of my React Native (Expo) project, I experienced this output in the terminal:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':react-native-community_datetimepicker:extractReleaseAnnotations'.
> Installed Build Tools revision 33.0.1 is corrupted. Remove and install again using the SDK Manager.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

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.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

Hopefully this aids in fixing the issue if I don't get around to fixing it first.

Thanks to all the contributors who have made this package possible so far!

NRHunsdale avatar Jan 24 '24 08:01 NRHunsdale

Hello, I am using react native 73.1, and this package is working fine . most probably you need to check

Installed Build Tools revision 33.0.1 is corrupted. Remove and install again using the SDK Manager.

because of this it is happening

codewitharun avatar Feb 04 '24 19:02 codewitharun

Had the same issue and got it working again by upgrading to v7.6.3: npm i @react-native-community/[email protected]

niklashaug avatar Mar 19 '24 14:03 niklashaug

Had the same issue and got it working again by upgrading to v7.6.3: npm i @react-native-community/[email protected]

Thank you, this fixed it for me.

FiveEightyEight avatar Apr 22 '24 22:04 FiveEightyEight

Hello this should be fixed in v8 https://github.com/react-native-datetimepicker/datetimepicker/releases/tag/v8.0.0

Please open a new issue if the problem persists

Thank you!

vonovak avatar Apr 25 '24 20:04 vonovak