software-mansion / react-native-svg

SVG library for React Native, React Native Web, and plain React web projects.
MIT License
7.43k stars 1.12k forks source link

SvgViewManager.java:396: error: method does not override or implement a method from a supertype #2428

Closed zwang62 closed 1 week ago

zwang62 commented 2 weeks ago

Description

When I updated the svg to latest version, there is a build issue in the Android.

WechatIMG291

Im not good at andorid,but, I think there might be an issue with this overridden method. The method in BaseViewManager only has two parameters? image

image

Steps to reproduce

  1. Update react-native-svg to the latest version.
  2. Sync and build on android platform.

Snack or a link to a repository

None

SVG version

15.6.0

React Native version

0.72.9

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 2 weeks ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

dangthequan commented 2 weeks ago

To fix this issue, downgrade version to 15.5.0.

codexdevbrn commented 2 weeks ago

Your version of react native is probably in conflict with react-native-svg, downgrade until you find one that is compatible.

moonquddus commented 2 weeks ago

For anyone else who has this issue, I'm on React Native 0.72.17 and I had to downgrade to 14.2.0

frankie303 commented 1 week ago

for me 15.5.0 worked fine with RN 0.72.15

compwron commented 2 days ago

I am also having this issue at work (from a dependabot upgrade)

"node_modules/react-native-svg": {
      "version": "15.6.0",

"react-native": "0.71.8",