React Native 微信支付安卓打包报错 程序包android.support.annotation不存在 import android.support.annotation.Nullable;

引入react-native-wechat后打包报错,提示信息

/Users/niejunyong/node/lishiShengwu/node_modules/react-native-wechat/android/src/main/java/com/theweflex/react/WeChatModule.java:7: 错误: 程序包android.support.annotation不存在
import android.support.annotation.Nullable;
                                 ^

解决方法

将 import android.support.annotation.Nullable;

替换为 import androidx.annotation.Nullable;

332
0
4月前