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

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

Closed
zwang62 opened this issue Aug 27, 2024 · 6 comments · Fixed by #2435
Labels
Missing repro This issue need minimum repro scenario

Comments

@zwang62
Copy link

zwang62 commented Aug 27, 2024

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 github-actions bot added the Missing repro This issue need minimum repro scenario label Aug 27, 2024
Copy link

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
Copy link

dangthequan commented Aug 27, 2024

To fix this issue, downgrade version to 15.5.0.

@codexdevbrn
Copy link

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

@moonquddus
Copy link

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
Copy link

for me 15.5.0 worked fine with RN 0.72.15

@compwron
Copy link

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",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants