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

Failed to build android after react native 0.72.3 #524

Open
ys-sherzad opened this issue Oct 9, 2023 · 6 comments
Open

Failed to build android after react native 0.72.3 #524

ys-sherzad opened this issue Oct 9, 2023 · 6 comments

Comments

@ys-sherzad
Copy link

ys-sherzad commented Oct 9, 2023

After upgrading react-native: 0.72.3, android building is failing:

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':react-native-picker_picker:packageDebugResources' (type 'MergeResources').
  - Gradle detected a problem with the following location: '/Users/Yasir/projects/keleya/de.keleya.pregnancy/node_modules/@react-native-picker/picker/android/build/generated/res/rs/debug'.
    
    Reason: Task ':react-native-picker_picker:packageDebugResources' uses this output of task ':@react-native-picker_picker:compileDebugRenderscript' 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-picker_picker:compileDebugRenderscript' as an input of ':react-native-picker_picker:packageDebugResources'.
      2. Declare an explicit dependency on ':@react-native-picker_picker:compileDebugRenderscript' from ':react-native-picker_picker:packageDebugResources' using Task#dependsOn.
      3. Declare an explicit dependency on ':@react-native-picker_picker:compileDebugRenderscript' from ':react-native-picker_picker:packageDebugResources' using Task#mustRunAfter.
    
    Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/Yasir/projects/keleya/de.keleya.pregnancy/node_modules/@react-native-picker/picker/android/build/generated/res/resValues/debug'.
    
    Reason: Task ':react-native-picker_picker:packageDebugResources' uses this output of task ':@react-native-picker_picker:generateDebugResValues' 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-picker_picker:generateDebugResValues' as an input of ':react-native-picker_picker:packageDebugResources'.
      2. Declare an explicit dependency on ':@react-native-picker_picker:generateDebugResValues' from ':react-native-picker_picker:packageDebugResources' using Task#dependsOn.
      3. Declare an explicit dependency on ':@react-native-picker_picker:generateDebugResValues' from ':react-native-picker_picker:packageDebugResources' using Task#mustRunAfter.
    
    Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

Enviroment
react-native: 0.72.3
@react-native-picker/picker: 2.5.1

@fgrs
Copy link

fgrs commented Oct 10, 2023

same error

@irodeanu
Copy link

Same :(

@ajp8164
Copy link

ajp8164 commented Nov 23, 2023

I’m using 2.4.8 without any problems. The details for the rn upgrade 0.72.3 were important for many packages I am using. Maybe downgrade? I didn’t look at changes since and I haven’t upgraded this package yet.

@roots-ai
Copy link

@ajp8164 that version fails, doesn't support newarch.

@teberl
Copy link

teberl commented Feb 7, 2024

This lib is building perfectly fine for me with newArchitecture enabled [Android, iOS].
@roots-ai && @ys-sherzad maybe you can try updating your dependencies, but of course this might break other things 😢

My versions

"@react-native-picker/picker": "^2.6.1",
"expo": "^50.0.6",
"react-native": "0.73.3",

of course many more but i think they are not relevant.

@daniel-tribal
Copy link

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants