RN RCTWeChat "react-native-wechat": "^1.9.9" 库升级as到 3.x后造成标题所示问题
解决方式:
1、根据微信官方 修改RCTWeChat下 build.gradle libs 目录删除,重新各种代码import ctlr + enter处理
dependencies {
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
2、修改RN 项目根build.gradle, 这是implementation的机制造成的可见性问题
dependencies {
implementation project(':react-native-code-push')
implementation project(':RCTWeChat')
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'