React-native-wechat: RN 0.57 Android版集成报错 错误: 无法访问IWXAPIEventHandler WeChatModule.handleIntent(getIntent());

Created on 28 Sep 2018  ·  12Comments  ·  Source: yorkie/react-native-wechat

RN0.57
Android Studio 3.14

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

wx20180928-203456 2x

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

wx20180928-203843 2x

请问如何解决?

Most helpful comment

compile改成api就可以

All 12 comments

同样的问题

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

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

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

compile改成api就可以

compile改成api就可以

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

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

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

谢谢,已经好了。

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

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

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

谢谢,已经好了。

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

需要将node_modulesreact-native-wechatandroidbuild.gradle 里的compile 修改为api(注意修改为implementation会出错)
把compileSdkVersion buildToolsVersion targetSdkVersion 修改为编译器一致

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhenlovezhen2012 picture zhenlovezhen2012  ·  5Comments

wushuirenjia picture wushuirenjia  ·  4Comments

lixunn picture lixunn  ·  6Comments

arniu picture arniu  ·  4Comments

xclidongbo picture xclidongbo  ·  4Comments