React-Native使用antd Tabs报错"RNCViewPager" was not found in the UIManager?
依赖
-"@ant-design/react-native": "^3.2.0"
-"react-native": "0.61.5"
原因
react-native 0.61.0以上,将组件viewpager剔除,交由社区维护,安装就行
安装
yarn add @react-native-community/viewpager
Could not resolve com.android.tools.build:gradle:3.2.1
依赖>Viewpager>android>buld.gradle版本号(与项目安卓目录同文件版本一致)
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0
进入项目自带的gradle.bat
gradle.bat assembleRelease --Windows
./gradle assembleRelease --Linux,Macd
Could not get resource 'https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-iid/17.0.0/play-services-iid-17.0.0.aar'
maven {url 'https://maven.aliyun.com/repository/public'}
maven {url 'https://maven.aliyun.com/repository/google'}