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

I got this erro - A problem occurred evaluating project ':react-native-svg'. > /Users/rbandara/Desktop/OSANO_test2/mobile-etext/node_modules/react-native/gradle/libs.versions.toml (No such file or directory) #2614

Closed
Rananjaya opened this issue Jan 15, 2025 · 4 comments
Labels
Missing repro This issue need minimum repro scenario

Comments

@Rananjaya
Copy link

Rananjaya commented Jan 15, 2025

Description

I got this error when react native run android - Build file '/Users/rbandara/Desktop/OSANO_test2/mobile-etext/node_modules/react-native-svg/android/build.gradle' line: 65

A problem occurred evaluating project ':react-native-svg'.

/Users/rbandara/Desktop/OSANO_test2/mobile-etext/node_modules/react-native/gradle/libs.versions.toml (No such file or directory)

Steps to reproduce

react-native run-android

Snack or a link to a repository

none

SVG version

15.1.0

React Native version

0.71.13

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

@Rananjaya Rananjaya changed the title A problem occurred evaluating project ':react-native-svg'. > /Users/rbandara/Desktop/OSANO_test2/mobile-etext/node_modules/react-native/gradle/libs.versions.toml (No such file or directory) I git this erro - A problem occurred evaluating project ':react-native-svg'. > /Users/rbandara/Desktop/OSANO_test2/mobile-etext/node_modules/react-native/gradle/libs.versions.toml (No such file or directory) Jan 15, 2025
@Rananjaya Rananjaya changed the title I git this erro - A problem occurred evaluating project ':react-native-svg'. > /Users/rbandara/Desktop/OSANO_test2/mobile-etext/node_modules/react-native/gradle/libs.versions.toml (No such file or directory) I got this erro - A problem occurred evaluating project ':react-native-svg'. > /Users/rbandara/Desktop/OSANO_test2/mobile-etext/node_modules/react-native/gradle/libs.versions.toml (No such file or directory) Jan 15, 2025
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?

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Jan 15, 2025
@jakex7
Copy link
Member

jakex7 commented Jan 15, 2025

Hey @Rananjaya,
As mentioned in the project's README under Supported React Native Versions, versions above 15.8.0 requires at least [email protected]+.

@stefaninicnh
Copy link

stefaninicnh commented Jan 17, 2025

I encountered the same issue because my project uses RN 0.72.14, and I fixed it with the following configuration:

"react-native-svg": "15.7.1" // Do not use ^ as it causes other problems.

This is the latest version that works with RN < 0.73.

@jakex7 jakex7 closed this as completed Jan 20, 2025
@Rananjaya
Copy link
Author

Rananjaya commented Jan 27, 2025

sorry @stefaninicnh , @jakex7 but i used svg version 15.1.0 with react native 0.71.13. it should be compatible right ?

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

No branches or pull requests

3 participants