redzippo
redzippo
  • 发布:2016-08-10 16:37
  • 更新:2016-10-20 17:06
  • 阅读:1673

android离线打包 微信登陆成功后 getUserinfo无法执行 底层报错

分类:Native.js

如题,怀疑是缺少jar包引起,但使用了全jar包测试,也是同样的错误,求解,谢谢!
引用jar情况:

错误信息如下:
08-10 16:32:59.992: W/System.err(27005): java.lang.reflect.InvocationTargetException
08-10 16:32:59.992: W/System.err(27005): at java.lang.reflect.Method.invokeNative(Native Method)
08-10 16:32:59.992: W/System.err(27005): at java.lang.reflect.Method.invoke(Method.java:525)
08-10 16:32:59.992: W/System.err(27005): at io.dcloud.common.DHInterface.StandardFeature.executeAction(StandardFeature.java:74)
08-10 16:32:59.999: W/System.err(27005): at io.dcloud.common.DHInterface.StandardFeature.execute(StandardFeature.java:66)
08-10 16:32:59.999: W/System.err(27005): at io.dcloud.feature.b.a(FeatureMgr.java:299)
08-10 16:32:59.999: W/System.err(27005): at io.dcloud.feature.b.processEvent(FeatureMgr.java:132)
08-10 16:32:59.999: W/System.err(27005): at io.dcloud.common.b.a.dispatchEvent(Core.java:391)
08-10 16:32:59.999: W/System.err(27005): at io.dcloud.common.b.b.i.processEvent(WindowMgr.java:117)
08-10 16:33:00.007: W/System.err(27005): at io.dcloud.common.b.b.g.exec(DHWebview.java:166)
08-10 16:33:00.007: W/System.err(27005): at io.dcloud.common.util.Birdge.exec(Birdge.java:25)
08-10 16:33:00.007: W/System.err(27005): at io.dcloud.common.adapter.ui.AdaWebview$3.execute(AdaWebview.java:586)
08-10 16:33:00.007: W/System.err(27005): at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(MessageHandler.java:23)
08-10 16:33:00.007: W/System.err(27005): at android.os.Handler.dispatchMessage(Handler.java:99)
08-10 16:33:00.007: W/System.err(27005): at android.os.Looper.loop(Looper.java:137)
08-10 16:33:00.007: W/System.err(27005): at android.app.ActivityThread.main(ActivityThread.java:5103)
08-10 16:33:00.007: W/System.err(27005): at java.lang.reflect.Method.invokeNative(Native Method)
08-10 16:33:00.007: W/System.err(27005): at java.lang.reflect.Method.invoke(Method.java:525)
08-10 16:33:00.007: W/System.err(27005): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
08-10 16:33:00.007: W/System.err(27005): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-10 16:33:00.015: W/System.err(27005): at dalvik.system.NativeStart.main(Native Method)
08-10 16:33:00.015: W/System.err(27005): Caused by: java.lang.NullPointerException
08-10 16:33:00.015: W/System.err(27005): at java.lang.String.<init>(String.java:141)
08-10 16:33:00.015: W/System.err(27005): at io.dcloud.feature.oauth.BaseOAuthService.getUserInfo(BaseOAuthService.java:135)
08-10 16:33:00.015: W/System.err(27005): at io.dcloud.feature.oauth.weixin.WeiXinOAuthService.a(WeiXinOAuthService.java:298)
08-10 16:33:00.015: W/System.err(27005): at io.dcloud.feature.oauth.weixin.WeiXinOAuthService.getUserInfo(WeiXinOAuthService.java:276)
08-10 16:33:00.015: W/System.err(27005): at io.dcloud.feature.oauth.OAuthFeatureImpl.getUserInfo(OAuthFeatureImpl.java:53)
08-10 16:33:00.015: W/System.err(27005): ... 20 more

2016-08-10 16:37 负责人:无 分享
已邀请:
redzippo

redzippo (作者)

谁给个回复呀。。。。在线等 谢谢

jacy

jacy

解决了么,同遇到

骁骑

骁骑

加一下我的QQ 231897949 我需要看下工程

阿斯蒂

阿斯蒂 - eeeeeeeeeeeeeeeeeeeeeeeeeeeee

@OAuth 哥们 解决了吗

  • redzippo (作者)

    不好意思回复晚啦。。已经解决了,当时的版本应该是微信登陆时的BUG,Android平台在登录成功后,不需要调用getUserinfo方法,即可获取到用户信息,而IOS平台则需要调用一下该方法才可以。坑较多,在当时还是比较伤的,至少浪费了2天时间。

    2017-01-18 12:25

  • 阿斯蒂

    感觉活着好累

    2017-10-10 18:19

该问题目前已经被锁定, 无法添加新回复