react-native 开发中遇到的错误

react-native 开发中遇到的错误_第1张图片

解决办法找不到CodepushHash

 

Process 'command 'node'' finished with non-zero exit value 1

解决办法编译异常退出解决链接

 

react-native Android WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.

解决办法http://www.cnblogs.com/pengkun06Gmail/p/10509261.html

Error: Program type already present: android.support.v4.app.INotificationSideChannel

解决办法https://blog.csdn.net/weixin_41618522/article/details/87165593

 

 

总结一下,之前遇到各种文件找不到,各种api无法调用都只需要添加这两行代码

android.enableJetifier=true
android.useAndroidX=true

然后把对应api替换成androidx的再编译就行了

你可能感兴趣的:(react-native)