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

[Bug]: Task ':app:lintAnalyzeDebug' 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. #1700

Open
makhoulshbeeb opened this issue Jan 14, 2025 · 2 comments
Labels
bug waiting Waiting on OP response

Comments

@makhoulshbeeb
Copy link

Which package are you using?

@react-native-vector-icons/*

What platform(s) does this occur on?

Android

What happened?

Build failure when running "./gradlew build" on android directory

Fix:

Under "android.applicationVariants.all { def variant ->" in "fonts.gradle" add:

def lintAnalyzeTask = tasks.findByName("lintAnalyze${targetName}")
lintAnalyzeTask?.dependsOn(copyReactNativeVectorIconFonts)

Relevant log output

No response

Minimal reproducible example

No response

Your computer environment

System:
  OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
  CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H
  Memory: 3.89 GB / 15.09 GB
  Shell:
    version: 5.2.21
    path: /bin/bash
Binaries:
  Node:
    version: 23.4.0
    path: ~/.nvm/versions/node/v23.4.0/bin/node
  Yarn: Not Found
  npm:
    version: 10.9.2
    path: ~/.nvm/versions/node/v23.4.0/bin/npm
  Watchman:
    version: 4.9.0
    path: /usr/bin/watchman
SDKs:
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
Languages:
  Java:
    version: 23.0.1
    path: /usr/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: ^18.2.0
  react-native:
    installed: 0.72.7
    wanted: 0.72.7
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: Not found
@johnf
Copy link
Collaborator

johnf commented Jan 24, 2025

@makhoulshbeeb Can you migrate to @react-native-vector-icons/* v11.x

It copies the fonts in a different way that solves this issue

@johnf johnf added the waiting Waiting on OP response label Feb 2, 2025
@MatthieuCutin
Copy link

Hi @johnf, I'm facing the same issue with react-native-vector-icons v10.2.0.

I can't migrate to @react-native-vector-icons/ v11.x since I'm using react-native-vector-icons as a dependency of React Native Elements.

Is there a way to properly copy the fonts without migrating?

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

No branches or pull requests

3 participants