1.报错图片
解决方案:
android下的build.gradle文件
修改 如图
报错
E:/androidData/caches/transforms-2/files-2.1/399126eae79af6235d7a4ae871926a31/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.16.
解决方案:
react-native-webview 修改kotlin版本
react-native-screens修改appcompat版本
react-native-screens 修改sdk版本
报错信息:
Task :app:mergeDebugNativeLibs FAILED
More than one file was found with OS independent path ‘lib/armeabi-v7a/libfbjni.so’.
解决方法:
App下的build.gradle, 在android{} 下添加packagingOptions{}, 里面添加
pickFirst ‘lib/*/libfbjni.so’