Closed ANDYGE closed 4 years ago
已解决,在taro-native-shell/node_modules/react-native-svg/android/build.gradle 中添加如下依赖:
dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
// new add
implementation 'androidx.annotation:annotation:1.1.0'
}
请问现在用的哪个版本的RN?如果是0.60以前的,就会有androidx的问题
我用的是Taro框架指定RN为:0.55.4
非常感谢taro-iconfont-cli的分享。
在安装了react-native-svg之后,出现了很多”错误: 找不到符号“的错误,大神,该怎么破啊?