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

React Native Vector Icons causing build error #1516

Closed nehaTrank closed 11 months ago

nehaTrank commented 12 months ago

I created a React Native Project and Worked on it, It works perfect on debug build. But when I run ./gradlew assembleRelease inside android directory, It leads me to an error.

Task :app:copyReactNativeVectorIconFonts FAILED

FAILURE: Build failed with an exception.

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.

See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s 214 actionable tasks: 7 executed, 207 up-to-date

Here's package.json

{ "name": "App Name", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "@react-native-async-storage/async-storage": "^1.19.0", "@react-navigation/bottom-tabs": "^6.5.8", "@react-navigation/native": "^6.1.7", "@react-navigation/native-stack": "^6.9.13", "@reduxjs/toolkit": "^1.9.5", "axios": "^1.4.0", "react": "18.2.0", "react-native": "0.72.1", "react-native-linear-gradient": "^2.7.3", "react-native-safe-area-context": "^4.6.3", "react-native-screens": "^3.22.0", "react-native-splash-screen": "^3.3.0", "react-native-vector-icons": "^9.2.0", "react-redux": "^8.1.1" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/eslint-config": "^0.72.2", "@react-native/metro-config": "^0.72.7", "@tsconfig/react-native": "^3.0.0", "@types/metro-config": "^0.76.3", "@types/react": "^18.0.24", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.2.1", "eslint": "^8.19.0", "jest": "^29.2.1", "metro-react-native-babel-preset": "0.76.5", "prettier": "^2.4.1", "react-native-dotenv": "^3.4.9", "react-test-renderer": "18.2.0", "typescript": "4.8.4" }, "engines": { "node": ">=16" } }

billel-boudchicha commented 12 months ago

for me too after upgrading RN to 0.72.1 i get a build error

pavelustenko commented 12 months ago

Hi! See https://github.com/oblador/react-native-vector-icons/issues/1508 thread

sehrish30 commented 12 months ago

Same issue please patch it

This worked for me :) please patch the package

nehaTrank commented 11 months ago

Hi! See #1508 thread

Thanks a lot!! it worked for me too :)

caixingyue commented 11 months ago

I also have the same problem, is there a solution?

nehaTrank commented 11 months ago

I also have the same problem, is there a solution?

try this https://github.com/oblador/react-native-vector-icons/issues/1508#issuecomment-1604115239 it worked for me.

oblador commented 11 months ago

Fixed in 10.0.0

caixingyue commented 11 months ago

我也有同样的问题,有解决办法吗?

试试这个#1508(评论)它对我有用。

Thank you, I have successfully fixed it by this method, and the author has updated to 10.0.0, which also made the fix