YogaNodeAPI error in android using react-native@0.45.0-rc.0
See original GitHub issueDescription
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:
- Created 6 years ago
- Reactions:11
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
React Native 0.45 just released so we need to merge PR and release new version quickly.
@fabien-h yes, it is the same issue by
:react-native-svg:compileReleaseJavaWithJavac