作者:晴可倾 | 来源:互联网 | 2024-10-11 13:40
大家好,
我下载了下面这个链接中的范例代码
https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=...
把包,AndroidManifest.xml和AppID改成了我自己的设置,但编译在我的安卓手机上运行时点击
“将该app注册到微信”没有任何响应,点击“跳转到发消息界面”,下面各项内容也无法正常使用。(一点击程序就退出了)
我运行了adb logcat
这是“将该app注册到微信”的输出日志:
D/MicroMsg.SDK.WXApiImplV10(13211): ignore wechat app signature validation
D/MicroMsg.SDK.WXApiImplV10(13211): register app cn.duangwifi.bizconsole
D/MicroMsg.SDK.MMessage(13211): send mm message, intent=Intent { act=com.tencent.mm.plugin.openapi.Intent.ACTION_HANDLE_APP_REGISTER (has extras) }, perm=com.tencent.mm.permission.MM_MESSAGE
这是点击“跳转到发消息界面”->"发送文本"的输出日志:
I/ActivityManager( 208): Starting: Intent { cmp=cn.duangwifi.bizconsole/.SendToWXActivity } from pid 13211
I/ActivityManager( 208): Displayed cn.duangwifi.bizconsole/.SendToWXActivity: +266ms
E/MP-Decision( 254): UP Nw:2.700000 Tw:180 rq:3.500000 seq:221.000000
E/ThermalDaemon( 256): Maximum CPU1 frequency 1512000 KHz
E/MP-Decision( 254): DOWN Ns:2.100000 Ts:270 rq:1.500000 seq:296.000000
D/MicroMsg.SDK.WXApiImplV10(13211): ignore wechat app signature validation
I/ActivityManager( 208): Starting: Intent { flg=0x18000000 cmp=com.tencent.mm/.plugin.base.stub.WXEntryActivity (has extras) } from pid 13211
D/MicroMsg.SDK.MMessageAct(13211): send mm message, intent=Intent { flg=0x18000000 cmp=com.tencent.mm/.plugin.base.stub.WXEntryActivity (has extras) }
E/MP-Decision( 254): UP Nw:2.700000 Tw:180 rq:6.142857 seq:205.000000
E/ThermalDaemon( 256): Maximum CPU1 frequency 1512000 KHz
I/ActivityManager( 208): Displayed com.tencent.mm/.plugin.base.stub.WXEntryActivity: +575ms
W/ActivityManager( 208): Duplicate finish request for HistoryRecord{4077f010 com.tencent.mm/.plugin.base.stub.WXEntryActivity}
W/IInputConnectionWrapper(13211): showStatusIcon on inactive InputConnection
E/MP-Decision( 254): DOWN Ns:2.100000 Ts:270 rq:1.273973 seq:319.000000
请帮忙看下是什么原因? 谢谢!