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

No ViewManager defined for RNSVG on Android #276

Closed
Jperrin42 opened this issue Mar 8, 2017 · 9 comments
Closed

No ViewManager defined for RNSVG on Android #276

Jperrin42 opened this issue Mar 8, 2017 · 9 comments

Comments

@Jperrin42
Copy link

Hello,
before i explain i have to say that i already tried #135

So, i installed RNSVG, linked using react-native link react-native-svg.
Then i checked my MainApplication.java and tried to include import com.horcrux.svg.SvgPackage (already done by the link) and import com.horcrux.svg.RNSvgPackage; (for version < 5.1.5 but still tried) and add them to the getPackage method (both and one by one).

I checked about the manual installation and everything seems to be done properly.

But i still have the issue and i don't know what to do next since it seems to have solved the problem for other people.

am I missing something ?
Thanks in advance.

@jayesbe
Copy link

jayesbe commented May 3, 2017

Had the same issue. Was missing the compile line in build.grade after the react-native link.

After I added that, used android-studio to rebuild.
Restarted the package manager, and hit reload on the app.
Working now.

@Tonacatecuhtli
Copy link

Hi I checked the build.gradel but everything seems to be fine still having this issue. how about you @Jperrin42 ?

@lakeoffaith
Copy link

i have the same issue

@lakeoffaith
Copy link

my problem is solved,i solve the android studio problem as
his version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run
it work now

@ayberkanilatsiz
Copy link

ayberkanilatsiz commented May 15, 2017

@lakeoffaith disabling instant run not work for me.

"react-native-svg": "^5.1.8",
"react-native": "^0.44.0",

@ayberkanilatsiz
Copy link

ayberkanilatsiz commented May 15, 2017

I found solution for me. I use wix (Navigation https://wix.github.io/react-native-navigation) on my project. It's linking different. If you are using wix nav., look this => wix/react-native-navigation#1245

@nhducit
Copy link

nhducit commented Aug 4, 2017

It doesn't work for me even instant run is disabled

@prgpascal
Copy link

The following steps solved the issue for me:

  • react-native link react-native-svg
  • manually delete the /android/app/build directory
  • npm start -- --reset-cache
  • Run the packager for Android

@msand
Copy link
Collaborator

msand commented Feb 13, 2018

Closing this.

@msand msand closed this as completed Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants