indiespirit / react-native-chart-kit-example

Expo app with charts from react-native-chart-kit
71 stars 61 forks source link

Invariant Violation: requireNtiveComponent: "RNSVGRect" was not found in the UIManager #11

Open nxhoang opened 4 years ago

nxhoang commented 4 years ago

I ran 2 cmd lines: yarn add react-native-chart-kit yarn add react-native-svg prop-types then show me an error image I tried to run this react-native link react-native-svg then show me another error

info Starting JS server... info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)... Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Configure project :react-native-audio WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

Task :react-native-svg:compileDebugJavaWithJavac G:\Works\Phuong\MES.SCAN\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\SvgView.java:24: error: cannot find symbol import androidx.annotation.NonNull; ^ symbol: class NonNull location: package androidx.annotation G:\Works\Phuong\MES.SCAN\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\ForeignObjectView.java:17: error: cannot find symbol import androidx.annotation.NonNull; ^ symbol: class NonNull location: package androidx.annotation G:\Works\Phuong\MES.SCAN\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\SvgView.java:113: error: cannot find symbol public void onDescendantInvalidated(@NonNull View child, @NonNull View target) { ^ symbol: class NonNull location: class SvgView G:\Works\Phuong\MES.SCAN\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\SvgView.java:113: error: cannot find symbol public void onDescendantInvalidated(@NonNull View child, @NonNull View target) { ^ symbol: class NonNull location: class SvgView G:\Works\Phuong\MES.SCAN\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\ForeignObjectView.java:47: error: cannot find symbol public void onDescendantInvalidated(@NonNull View child, @NonNull View target) { ^ symbol: class NonNull location: class ForeignObjectView G:\Works\Phuong\MES.SCAN\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\ForeignObjectView.java:47: error: cannot find symbol public void onDescendantInvalidated(@NonNull View child, @NonNull View target) { ^ symbol: class NonNull location: class ForeignObjectView 6 errors

Task :react-native-svg:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 54s 118 actionable tasks: 11 executed, 107 up-to-date error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.

ThalKod commented 2 years ago

Was you able to fix this issue @nxhoang ?

felipermfalcao commented 1 year ago

Was you able to fix this issue @nxhoang ?