datetimepicker
datetimepicker copied to clipboard
@react-native-community/datetimepicker not compatible with RN .73.1
Bug report
Summary
Builds are failing with RN version .73.1 with new architecture installed
Steps to reproduce
- Create a react native project with .73.1
- Install the latest datetimepicker (currently 7.6.2)
Describe what you expected to happen:
- I expect a successful build
datetimepicker version: 7.6.2
iOS / Android version: x.x
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!
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
Had the same issue and got it working again by upgrading to v7.6.3:
npm i @react-native-community/[email protected]
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.
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!