oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.31k stars 2.12k forks source link

Not able to use react native vector icons on react native v0.76.7 not able to add on gradle #1529

Closed majidnope closed 8 months ago

majidnope commented 11 months ago

Not able to use react native vector icons on react native v0.76.7 not able to add on grandle file,

when i try to added its actually causing error while i try to build

Jadoiconic commented 11 months ago

Not only v0.76.7, It is the version greater than v0.72

johnf commented 11 months ago

What error are you getting. I'm using RNVI on 0.72 in production without any issues.

night-fury-rider commented 8 months ago

What error are you getting. I'm using RNVI on 0.72 in production without any issues.

I am getting following error with RN 0.72


> Task :app:lintVitalAnalyzeRelease FAILED

* What went wrong:
A problem was found with the configuration of task ':app:lintVitalAnalyzeRelease' (type 'AndroidLintAnalysisTask').

 Reason: Task ':app:lintVitalAnalyzeRelease' uses this output of task ':app:copyReactNativeVectorIconFonts' 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 ':app:copyReactNativeVectorIconFonts' as an input of ':app:lintVitalAnalyzeRelease'.
      2. Declare an explicit dependency on ':app:copyReactNativeVectorIconFonts' from ':app:lintVitalAnalyzeRelease' using Task#dependsOn.
      3. Declare an explicit dependency on ':app:copyReactNativeVectorIconFonts' from ':app:lintVitalAnalyzeRelease' 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.
night-fury-rider commented 8 months ago

Updating react-native-vector-icons to 10.0.0 solved this issue.