question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YogaNodeAPI error in android using react-native@0.45.0-rc.0

See original GitHub issue

Description

I am getting the following error on android.

MyProject/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgViewManager.java:17: error: cannot find symbol
import com.facebook.yoga.YogaNodeAPI;
                        ^
  symbol:   class YogaNodeAPI
  location: package com.facebook.yoga
MyProject/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/SvgViewManager.java:34: error: cannot find symbol
                YogaNodeAPI node,
                ^

Dependency Version:

    "react-native": "0.45.0-rc.0",
    "react-native-svg": "5.1.8"

Suggested Solution

In Yoga latest release v1.5.0, they have renamed YogaNodeAPI to YogaNode. After renaming it in SvgViewManager.java, i am able to run my app.

Reference :

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:5

github_iconTop GitHub Comments

6reactions
farwayercommented, Jun 7, 2017

React Native 0.45 just released so we need to merge PR and release new version quickly.

2reactions
ayushnawanicommented, Jun 6, 2017

@fabien-h yes, it is the same issue by :react-native-svg:compileReleaseJavaWithJavac

Read more comments on GitHub >

github_iconTop Results From Across the Web

YogaNodeAPI error in android using react-native@0.45.0-rc.0
I am getting the following error on android. ... In Yoga latest release v1.5.0, they have renamed YogaNodeAPI to YogaNode. After renaming it...
Read more >
React Native Android build failure with different errors without ...
The build failures for Android was due to the publish of the React Native version 0.71.0-rc0 . Note: Error may be different but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found