yorkie / react-native-wechat

🚀 WeChat login, share, favorite and payment for React-Native on iOS and Android platforms (QQ: 336021910)
https://npmjs.org/package/react-native-wechat
MIT License
2.91k stars 711 forks source link

RN 0.57 Android版集成报错 错误: 无法访问IWXAPIEventHandler WeChatModule.handleIntent(getIntent()); #388

Open byk04712 opened 6 years ago

byk04712 commented 6 years ago

RN0.57 Android Studio 3.14

build.grade 里面的 dependencies 里 compile 需要更改为 implementation,更改之后,又出现 如下错误

wx20180928-203456 2x

大概说的是没有找到 IWXAPIEventHandler ,但是我在工程里却能找到这个类

wx20180928-203843 2x

请问如何解决?

sunshihao commented 5 years ago

同样的问题

tiechuimeimei commented 5 years ago

将项目中node_module删除重新加载一下试试

lastidea commented 5 years ago

删除了重新加载也不行... 同样的问题呀

gailufeng commented 5 years ago

我也出了, 也是把compile 改为了 implementation, 改回去就好了

mkchung commented 5 years ago

compile改成api就可以

orzhtml commented 5 years ago

compile改成api就可以

怎么解决的?27以上要求用 implementation

mkchung commented 5 years ago

@orzhtml
gradle3.0后把原来的compile拆分成implement和api两个指令,新的api指令等同于原compile指令。 可以参考这里:https://blog.csdn.net/qq_26585943/article/details/73739427

orzhtml commented 5 years ago

@orzhtml gradle3.0后把原来的compile拆分成implement和api两个指令,新的api指令等同于原compile指令。 可以参考这里:https://blog.csdn.net/qq_26585943/article/details/73739427

谢谢,已经好了。

liuoomei commented 5 years ago

老天啊,终于找打类似的问题了,app快上线了而我被玩了两天了,不会Android好伤啊

liuoomei commented 5 years ago

image 这个要怎么改才行啊 ?哭死

liuoomei commented 5 years ago

@orzhtml gradle3.0后把原来的compile拆分成implement和api两个指令,新的api指令等同于原compile指令。 可以参考这里:https://blog.csdn.net/qq_26585943/article/details/73739427

谢谢,已经好了。

image 你好,我这个要怎么改啊?我把compile换成implementation/api都没有用啊,求你帮忙看看啊,项目快上线了,头皮发麻啊

simonnet126 commented 5 years ago

需要将\node_modules\react-native-wechat\android\build.gradle 里的compile 修改为api(注意修改为implementation会出错) 把compileSdkVersion buildToolsVersion targetSdkVersion 修改为编译器一致