get registration id fail,Jpush init failed


(chan) #1

log 如下:

07-21 16:43:01.634 8556-8556/? I/art: Late-enabling -Xcheck:jni
07-21 16:43:01.679 8556-8556/cn.com.cloudsplus.K2EVO D/JPush: [ExampleApplication] onCreate
07-21 16:43:01.702 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.6, buildId:367
07-21 16:43:01.707 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
07-21 16:43:01.732 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
07-21 16:43:01.743 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
07-21 16:43:01.758 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.1.3, buildId:138
07-21 16:43:01.789 8556-8556/cn.com.cloudsplus.K2EVO I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
07-21 16:43:01.847 8556-8603/cn.com.cloudsplus.K2EVO D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
07-21 16:43:01.896 8556-8603/cn.com.cloudsplus.K2EVO I/Adreno: QUALCOMM build                   : 31f65f7, Ia3ef73d9d4
                                                               Build Date                       : 12/03/16
                                                               OpenGL ES Shader Compiler Version: XE031.08.00.00
                                                               Local Branch                     : 
                                                               Remote Branch                    : 
                                                               Remote Branch                    : 
                                                               Reconstruct Branch               : 
07-21 16:43:01.901 8556-8603/cn.com.cloudsplus.K2EVO I/OpenGLRenderer: Initialized EGL, version 1.4
07-21 16:43:03.760 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.6, buildId:367
07-21 16:43:03.765 8556-8556/cn.com.cloudsplus.K2EVO I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
07-21 16:43:04.709 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.6, buildId:367
07-21 16:43:04.713 8556-8556/cn.com.cloudsplus.K2EVO I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
07-21 16:43:05.771 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JPush: [JPushInterface] action:resumePush
07-21 16:43:05.775 8556-8556/cn.com.cloudsplus.K2EVO D/JIGUANG-JCore: [JCoreInterface] jiguang service already started
07-21 16:43:05.775 8556-8556/cn.com.cloudsplus.K2EVO I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0

#2

看看还有没有更多的日志信息


(chan) #3

我是创建了两个应用,用回以前的包名和key就可以,改过来就不行,同一份代码,只是修改了包名和key


#4

先看日志吧,如果是出现1009错误什么的,这个正在查


(chan) #5

关键是也没报错信息哦,这个怎办


#6

开启debug,看完整的日志,我上面说的


(chan) #7

好像还真是1009

07-21 16:43:01.778 8588-8588/? I/art: Late-enabling -Xcheck:jni
07-21 16:43:01.797 8588-8594/? I/art: Debugger is no longer active
07-21 16:43:01.811 8588-8588/? D/JPush: [ExampleApplication] onCreate
07-21 16:43:01.834 8588-8588/? D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.6, buildId:367
07-21 16:43:01.839 8588-8588/? D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
07-21 16:43:01.865 8588-8588/? D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
07-21 16:43:01.875 8588-8588/? D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
07-21 16:43:01.914 8588-8588/? D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.1.3, buildId:138
07-21 16:43:01.935 8588-8588/? I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
07-21 16:43:01.999 8588-8588/? D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=run.action cmp=cn.com.cloudsplus.K2EVO/cn.jpush.android.service.PushService (has extras) }, pkg:cn.com.cloudsplus.K2EVO, connection:0
07-21 16:43:02.000 8588-8611/? D/JIGUANG-JCore: [ARunAction]  pkg:cn.com.cloudsplus.K2EVO
07-21 16:43:02.000 8588-8611/? D/JIGUANG-JCore: [ARunAction] Bundle[{action=cn.jpush.android.intent.REPORT, report.extra.info=, report=crash_log, sdktype=JCORE}]
07-21 16:43:02.001 8588-8588/? D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=cn.jpush.android.intent.INIT cmp=cn.com.cloudsplus.K2EVO/cn.jpush.android.service.PushService (has extras) }, pkg:cn.com.cloudsplus.K2EVO, connection:0
07-21 16:43:02.002 8588-8611/? D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:8588
07-21 16:43:02.002 8588-8588/? D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=run.action cmp=cn.com.cloudsplus.K2EVO/cn.jpush.android.service.PushService (has extras) }, pkg:cn.com.cloudsplus.K2EVO, connection:0
07-21 16:43:02.003 8588-8588/? D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=cn.jpush.android.intent.INIT cmp=cn.com.cloudsplus.K2EVO/cn.jpush.android.service.PushService (has extras) }, pkg:cn.com.cloudsplus.K2EVO, connection:0
07-21 16:43:02.003 8588-8611/? D/JIGUANG-JCore: [ARunAction]  pkg:cn.com.cloudsplus.K2EVO
07-21 16:43:02.003 8588-8611/? D/JIGUANG-JCore: [ARunAction] Bundle[{action=cn.jpush.android.intent.REPORT, report.extra.info=, report=crash_log, sdktype=JCORE}]
07-21 16:43:02.004 8588-8611/? D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:8588
07-21 16:43:02.004 8588-8611/? D/JIGUANG-JCore: [JiguangTcpManager] isRunning:true
07-21 16:43:02.005 8588-8625/? I/JIGUANG-JCore: [NetworkingClient] Begin to run in ConnectingThread - id:395
                                                
                                                [ 07-21 16:43:02.022  1508: 1574 D/         ]
                                                jni writeStringContentData: dataContent size:43, contentSize:43, str:cn.com.cloudsplus.K2EVO|2017-07-21 16:43:01, dataType:9
07-21 16:43:02.035 8588-8625/? D/JIGUANG-JCore: [ConnectingHelper] To get sis - host:s.jpush.cn, port:19000
07-21 16:43:02.053 8588-8627/? D/libc-netbsd: [getaddrinfo]:  hostname=s.jpush.cn; servname=(null);   app_uid=10162; ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0 from prox result 0
07-21 16:43:02.054 8588-8625/? D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
07-21 16:43:02.099 8588-8625/? I/JIGUANG-JCore: [ConnectingHelper] Get sis info succeed with host: s.jpush.cn
07-21 16:43:02.104 8588-8625/? D/JIGUANG-JCore: [ConnectingHelper] Open connection with main - ip:118.145.3.73, port:7006
07-21 16:43:02.148 8588-8625/? I/JIGUANG-JCore: [ConnectingHelper] Succeed to open connection - ip:118.145.3.73, port:7006
07-21 16:43:02.928 8588-8625/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JCommands] Action - receivedCommand - cmd:0
07-21 16:43:02.934 8588-8625/cn.com.cloudsplus.K2EVO:mult E/JIGUANG-JCore: [ConnectingHelper] Register Failed with server error - code:1009
07-21 16:43:02.938 8588-8625/cn.com.cloudsplus.K2EVO:mult W/JIGUANG-JCore: [ConnectingHelper] Local error description: Your appKey is related to a non-Android App.Please use your Android App's appKey, or add an Android app for this appKey.
07-21 16:43:02.955 8588-8625/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:547684052992
07-21 16:43:02.955 8588-8625/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Return of Close jni connection - 0
07-21 16:43:02.955 8588-8625/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:0
07-21 16:43:02.956 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - onDisconnected - connection:0
07-21 16:43:02.958 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
07-21 16:43:02.958 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
07-21 16:43:02.959 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - retryConnect - disconnectedTimes:0
07-21 16:43:02.960 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] network is not connect or hb is one day(user stop service) 
07-21 16:43:03.057 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
07-21 16:43:03.766 8588-8588/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=cn.jpush.android.intent.INIT cmp=cn.com.cloudsplus.K2EVO/cn.jpush.android.service.PushService (has extras) }, pkg:cn.com.cloudsplus.K2EVO, connection:0
07-21 16:43:03.766 8588-8611/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:8588
07-21 16:43:03.767 8588-8611/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] isRunning:false
07-21 16:43:03.767 8588-8611/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
07-21 16:43:03.768 8588-8654/cn.com.cloudsplus.K2EVO:mult I/JIGUANG-JCore: [NetworkingClient] Begin to run in ConnectingThread - id:399
07-21 16:43:03.770 8588-8654/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Open connection with main - ip:118.145.3.73, port:7006
07-21 16:43:04.713 8588-8588/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=cn.jpush.android.intent.INIT cmp=cn.com.cloudsplus.K2EVO/cn.jpush.android.service.PushService (has extras) }, pkg:cn.com.cloudsplus.K2EVO, connection:547860574208
07-21 16:43:04.825 8588-8654/cn.com.cloudsplus.K2EVO:mult I/JIGUANG-JCore: [ConnectingHelper] Succeed to open connection - ip:118.145.3.73, port:7006
07-21 16:43:05.892 8588-8654/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JCommands] Action - receivedCommand - cmd:0
07-21 16:43:05.892 8588-8654/cn.com.cloudsplus.K2EVO:mult E/JIGUANG-JCore: [ConnectingHelper] Register Failed with server error - code:1009
07-21 16:43:05.892 8588-8654/cn.com.cloudsplus.K2EVO:mult W/JIGUANG-JCore: [ConnectingHelper] Local error description: Your appKey is related to a non-Android App.Please use your Android App's appKey, or add an Android app for this appKey.
07-21 16:43:05.903 8588-8654/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:547860574208
07-21 16:43:05.903 8588-8654/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Return of Close jni connection - 0
07-21 16:43:05.903 8588-8654/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:0
07-21 16:43:05.903 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - onDisconnected - connection:0
07-21 16:43:05.904 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
07-21 16:43:05.904 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
07-21 16:43:05.905 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - retryConnect - disconnectedTimes:1
07-21 16:43:05.906 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] network is not connect or hb is one day(user stop service) 
07-21 16:43:06.035 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
07-21 16:46:43.663 8588-8588/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=cn.jpush.android.intent.INIT cmp=cn.com.cloudsplus.K2EVO/cn.jpush.android.service.PushService (has extras) }, pkg:cn.com.cloudsplus.K2EVO, connection:0
07-21 16:46:43.664 8588-8611/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:8588
07-21 16:46:43.665 8588-8611/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] isRunning:false
07-21 16:46:43.665 8588-8611/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
07-21 16:46:43.666 8588-11782/cn.com.cloudsplus.K2EVO:mult I/JIGUANG-JCore: [NetworkingClient] Begin to run in ConnectingThread - id:402
07-21 16:46:43.675 8588-11782/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] To get sis - host:s.jpush.cn, port:19000
07-21 16:46:43.685 8588-11783/cn.com.cloudsplus.K2EVO:mult D/libc-netbsd: [getaddrinfo]:  hostname=s.jpush.cn; servname=(null);   app_uid=10162; ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0 from prox result 0
07-21 16:46:43.686 8588-11782/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
07-21 16:46:43.818 8588-11782/cn.com.cloudsplus.K2EVO:mult I/JIGUANG-JCore: [ConnectingHelper] Get sis info succeed with host: s.jpush.cn
07-21 16:46:43.819 8588-11782/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Open connection with main - ip:121.46.25.202, port:7006
07-21 16:46:43.960 8588-11782/cn.com.cloudsplus.K2EVO:mult I/JIGUANG-JCore: [ConnectingHelper] Succeed to open connection - ip:121.46.25.202, port:7006
07-21 16:46:44.926 8588-11782/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JCommands] Action - receivedCommand - cmd:0
07-21 16:46:44.926 8588-11782/cn.com.cloudsplus.K2EVO:mult E/JIGUANG-JCore: [ConnectingHelper] Register Failed with server error - code:1009
07-21 16:46:44.926 8588-11782/cn.com.cloudsplus.K2EVO:mult W/JIGUANG-JCore: [ConnectingHelper] Local error description: Your appKey is related to a non-Android App.Please use your Android App's appKey, or add an Android app for this appKey.
07-21 16:46:44.936 8588-11782/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:547860574208
07-21 16:46:44.937 8588-11782/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Return of Close jni connection - 0
07-21 16:46:44.937 8588-11782/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:0
07-21 16:46:44.937 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - onDisconnected - connection:0
07-21 16:46:44.937 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
07-21 16:46:44.937 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
07-21 16:46:44.940 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] Action - retryConnect - disconnectedTimes:2
07-21 16:46:44.941 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [JiguangTcpManager] network is not connect or hb is one day(user stop service) 
07-21 16:46:45.041 8588-8617/cn.com.cloudsplus.K2EVO:mult D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged

#8

那等一下。。。


#9

现在请大家重新配置,然后测试一下还否还有问题