React-native-wechat: 安卓打包提示WeChatModule.java:7: 错误: 程序包android.support.annotation不存在

Created on 9 Dec 2019  ·  8Comments  ·  Source: yorkie/react-native-wechat

Please read and follow the issue templates:

  1. Bug Report or Documentation Issue or Questions and Help?

  2. Which react-native-wechat version are you using?

  3. What platform does your issue occur on? (Android/iOS/Both)

  4. Please provide a clear and concise description of what the bug is as precisely as possible,you can:

    1) post a screenshot to explain in which case you get the issue?
    2) related logs
    3) show us the code you are using?
    4) others.

Your Environment

| software | version
| ---------------- | -------
| react-native-wechat | ^ version
| react-native | ^ version
| node | ^ version
| npm or yarn | ^ version

android

Most helpful comment

WeChatModule这个包里面的文件
//import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
替换一下就可以打包了

All 8 comments

"react-native-wechat": "^1.9.12"y
"react-native": "0.61.4"
node: v10.16.0
yarn: 1.19.1

try jetifier

解决了吗?

解决了吗?

Same issue

WeChatModule这个包里面的文件
//import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
替换一下就可以打包了

Could be great to PR that...

android run command: npx jetify, fix my issue

Was this page helpful?
0 / 5 - 0 ratings