Skip to content
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

Gradle Error in react-native-community/datetimepicker Package #827

Closed
primaramadhaniputra opened this issue Oct 16, 2023 · 1 comment
Closed

Comments

@primaramadhaniputra
Copy link

primaramadhaniputra commented Oct 16, 2023

Description:

I encountered a Gradle error while using the react-native-community/datetimepicker package in my React Native project. The error message is as follows:

Task :react-native-community_datetimepicker:copyReleaseJniLibsProjectAndLocalJars FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem was found with the configuration of task ':react-native-community_datetimepicker:copyReleaseJniLibsProjectAndLocalJars' (type 'LibraryJniLibsTask').
    • Gradle detected a problem with the following location: '/Users/name/Desktop/pn/node_modules/@react-native-community/datetimepicker/android/build/intermediates/stripped_native_libs/release/out'.

      Reason: Task ':react-native-community_datetimepicker:copyReleaseJniLibsProjectAndLocalJars' uses this output of task ':@react-native-community_datetimepicker:stripReleaseDebugSymbols' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

Possible solutions:

  1. Declare task ':@react-native-community_datetimepicker:stripReleaseDebugSymbols' as an input of ':react-native-community_datetimepicker:copyReleaseJniLibsProjectAndLocalJars'.
  2. Declare an explicit dependency on ':@react-native-community_datetimepicker:stripReleaseDebugSymbols' from ':react-native-community_datetimepicker:copyReleaseJniLibsProjectAndLocalJars' using Task#dependsOn.
  3. Declare an explicit dependency on ':@react-native-community_datetimepicker:stripReleaseDebugSymbols' from ':react-native-community_datetimepicker:copyReleaseJniLibsProjectAndLocalJars' using Task#mustRunAfter.

Steps to Reproduce:

-Run ./gradlew assembleRelease

Expected Behavior:

The project should build and run without errors.

Actual Behavior:

The Gradle error described above is encountered.

Environment:

React Native version: 0.72.5

Please let me know how to resolve this Gradle error or if there are any known workarounds. Thank you for your assistance.

@github-actions
Copy link

👋 @primaramadhaniputra, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue.
The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug.
Please create a new issue with this and we'll be happy to review it!

@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants