react-native-wechat-lib 使用填坑

339 阅读1分钟

1. build.gradle

dependencies {
  // For < 0.71, this will be from the local maven repo
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
  //noinspection GradleDynamicVersion
  implementation "com.facebook.react:react-native"
  implementation group: 'com.tencent.mm.opensdk', name: 'wechat-sdk-android', version: '6.8.20'
}

改为

dependencies {
  // For < 0.71, this will be from the local maven repo
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
  //noinspection GradleDynamicVersion

implementation "com.facebook.react:react-native:+"
api 'com.tencent.mm.opensdk:wechat-sdk-android:+'

}

2. 找不到com.tencent.mm.opensdk.openapi.IWXAPIEventHandler的类文件

3.增加调起微信客服