mac版android studio分享40012错误

android
标签: #<Tag:0x00007fb83d25ee80>

(likai) #1

mac版的android studio分享时会出现40012错误。platform 没配置

wwindows的则不会出现该错误。请问怎么解决


#2

检查你的 平台配置
https://docs.jiguang.cn/jshare/client/Android/android_sdk/#_5

提供完整的客户端日志信息和你的配置,从初始化开始


(likai) #3
09-10 16:26:55.043 17234-17362/com.wtkj.toydb E/JIGUANG-JShare: [PlatformManager] platform configs is empty, please use PlatformConfig to set plarformconfig
09-10 16:26:55.056 17234-17318/com.wtkj.toydb D/JIGUANG-JCore: [JiguangTcpManager] isRunning:true
09-10 16:26:55.194 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [SisPolicy] To get sis - host:139.198.14.15, port:19000 ,type:hardcode
09-10 16:26:55.216 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
09-10 16:26:56.896 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [JiguangTcpManager] Send heart beat
09-10 16:27:01.234 17234-17341/com.wtkj.toydb W/JIGUANG-JCore: [SisPolicy] singleSendSis failed, error:cn.jiguang.d.b.a.e: Can not get sis response from host: - 139.198.14.15 - Poll timed out
09-10 16:27:01.281 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [SisPolicy] To get sis - host:121.46.30.51, port:19000 ,type:hardcode
09-10 16:27:01.284 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
09-10 16:27:01.360 17234-17341/com.wtkj.toydb I/JIGUANG-JCore: [SisPolicy] Get sis info succeed with host: 121.46.30.51 type:hardcode
09-10 16:27:01.378 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [SisPolicy] Open connection with main - ip:124.202.138.14, port:7001
09-10 16:27:01.459 17234-17341/com.wtkj.toydb I/JIGUANG-JCore: [SisPolicy] Succeed to open connection - ip:124.202.138.14, port:7001
09-10 16:27:01.558 17234-17341/com.wtkj.toydb I/JIGUANG-JCore: [ConnectingHelper] Register succeed - juid:17254337136, registrationId:190e35f7e017d273b2f, deviceId:null
09-10 16:27:01.597 17234-17341/com.wtkj.toydb I/JIGUANG-JCore: [ConnectingHelper] Login with - juid:17254337136, appKey:532c083fb80342ce92e696ed, sdkVersion:65801, pushVersion:0, analyticsVersion:65793 ,shareVersion:66816, pluginPlatformType:0
09-10 16:27:01.693 17234-17341/com.wtkj.toydb I/JIGUANG-JCore: [ConnectingHelper] Login succeed - sid:414, serverTime;1536568023000
09-10 16:27:01.693 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [ConnectingHelper] Action - sendServerTimer
09-10 16:27:01.741 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [JiguangTcpManager] Action - onLoggedIn - connection:619
09-10 16:27:01.743 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
09-10 16:27:01.743 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Network listening...
09-10 16:27:01.746 17234-17333/com.wtkj.toydb I/JIGUANG-JCore: [ReportHelper] periodTasks...
09-10 16:27:01.756 17234-17641/com.wtkj.toydb D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
09-10 16:27:02.169 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [HttpHelper] status code:200
09-10 16:27:02.563 17234-17492/com.wtkj.toydb D/JIGUANG-JCore: [HttpHelper] status code:200
09-10 16:27:05.590 17766-17801/com.wtkj.toydb:xg_service_v3 E/JIGUANG-JShare: [PlatformManager] platform configs is empty, please use PlatformConfig to set plarformconfig
09-10 16:27:07.774 17234-17641/com.wtkj.toydb D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
09-10 16:27:08.306 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [JiguangTcpManager] Send heart beat
09-10 16:27:08.314 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [RequestCacheManager] Action - sendRequestInternal - connection:619, timeout:0,sdkType:JCORE, threadId:616
09-10 16:27:08.319 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [RequestCacheManager] Action - sendRequestInternal - connection:619, timeout:0,sdkType:JCORE, threadId:616
09-10 16:27:08.382 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:36, connection:619, pkg:com.wtkj.toydb
09-10 16:27:08.382 17234-17333/com.wtkj.toydb D/JIGUANG-JCore: [JiguangTcpManager] Action - onHeartbeatSucceed - connection:619
09-10 16:27:08.383 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Network listening...
09-10 16:27:08.458 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:36, connection:619, pkg:com.wtkj.toydb
09-10 16:27:08.459 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Network listening...
09-10 16:27:08.487 17234-17492/com.wtkj.toydb D/JIGUANG-JCore: [HttpHelper] status code:200
09-10 16:27:08.772 17234-17492/com.wtkj.toydb D/JIGUANG-JCore: [HttpHelper] status code:200
09-10 16:27:09.526 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
09-10 16:27:09.531 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:619
09-10 16:27:09.646 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:36, connection:619, pkg:com.wtkj.toydb
09-10 16:27:09.647 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Break receiving by wantStop - connection:619
09-10 16:27:09.648 17234-17341/com.wtkj.toydb D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:619
09-10 16:27:15.450 17234-17234/com.wtkj.toydb E/JIGUANG-JShare: [JShareInterface] do fail, can not find QQ platform.
09-10 16:27:19.642 17234-17234/com.wtkj.toydb E/JIGUANG-JShare: [JShareInterface] do fail, can not find QQ platform.
09-10 16:29:21.488 17234-17234/com.wtkj.toydb E/JIGUANG-JShare: [JShareInterface] do fail, can not find Wechat platform.
09-10 16:30:51.880 17234-17234/com.wtkj.toydb E/JIGUANG-JShare: [JShareInterface] do fail, can not find SinaWeibo platform.
09-10 16:30:54.209 17234-17234/com.wtkj.toydb E/JIGUANG-JShare: [JShareInterface] do fail, can not find QZone platform.
09-10 16:30:56.022 17234-17234/com.wtkj.toydb E/JIGUANG-JShare: [JShareInterface] do fail, can not find QQ platform.
09-10 16:30:57.450 17234-17234/com.wtkj.toydb E/JIGUANG-JShare: [JShareInterface] do fail, can not find WechatMoments platform.
09-10 16:31:45.036 17234-17337/com.wtkj.toydb I/JIGUANG-JCore: [ReportHelper] periodTasks...

#4

根据错误来看就是没有配置平台,你在工程里面检查下文件呢?

你是怎么测试的,连上真机运行测试的吗?

AS 在 Mac 和 Windows 上应该没啥区别呀

你在 Mac 的 AS 上跑我们的 example 有异常吗?