Android端JPushSDK运行时报异常
androidSDK升级后报异常
版本信息
jpush-android-3.8.6.jar
jcore-android-2.5.5jar
下载官方的demo, 并且确认包名配置无误. 运行时也有同样的问题
异常:
//初始化时报异常
E/JIGUANG-JCore: [getBasicAuthorization] basic authorization encode failed
//点击demo中的 GET_REGISTRATION_ID按钮报异常
E/PushMessageReceiver: [onCommandResult] CmdMessage{cmd=2005, errorCode=0, msg='100d855909200dc63ba', extra=Bundle[{cmd=2005, code=0, message=100d855909200dc63ba}]}
详细日志:
//包名做了修改
11/04 14:53:31: Launching 'demo' on Physical Device.
Install successfully finished in 1 s 470 ms.
$ adb shell am start -n "com.xxx.app.mobile/com.example.jpushdemo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.xxx.app.mobile.test | com.xxx.app.mobile
Waiting for application to come online: com.xxx.app.mobile.test | com.xxx.app.mobile
Connected to process 904 on device 'samsung-sm_g9250-01157df14a3bcd3e'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ActivityThread: Application com.xxx.app.mobile is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
Waiting for application to come online: com.xxx.app.mobile.test | com.xxx.app.mobile
Connecting to com.xxx.app.mobile
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
E/Zygote: v2
I/libpersona: KNOX_SDCARD checking this for 10439
KNOX_SDCARD not a persona
E/Zygote: accessInfo : 0
W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0010, [-1 -1 -1 -1 0 1]
I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.xxx.app.mobile
I/art: Late-enabling -Xcheck:jni
D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
W/ActivityThread: Application com.xxx.app.mobile is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
waiting for debugger to settle...
Connected to the target VM, address: 'localhost:56431', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1497)
D/JIGUANG-Example: [ExampleApplication] onCreate
D/ActionManager: addAction type:JPUSH,action:cn.jpush.android.helper.b
D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.8.6, buildId:89
D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
I/JIGUANG-JPush: [JPushConstants] found messageReceiverClass :com.example.jpushdemo.PushMessageReceiverat com.lantaizhengrui.app.mobile by getCommonReceiverNames
W/JIGUANG-JPush: [AndroidUtil] not found FileProvider
W/JIGUANG-JPush: [AndroidUtil] AndroidManifest.xml missing required FileProvider or meta-data is wrong
W/JIGUANG-JPush: [AndroidUtil] You will unable to use install app of in-app message.
D/JIGUANG-JPush: [ActionHelper] doSingleAction: third_init
E/JIGUANG-JCore: [getBasicAuthorization] basic authorization encode failed
I/JIGUANG-D: [JDyAndroidUtils] found userServiceClass :com.example.jpushdemo.PushService by getCommonServiceNames
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :com.example.jpushdemo.PushService by getCommonServiceNames
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:install_status
I/JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.5.5,build id:41,l:255
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
I/System.out: (HTTPLog)-Static: HongbaoModeServiceAPI: getService class android.os.ServiceManager
W/System: Ignoring header Authorization because its value was null.
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
W/JIGUANG-JPush: [AndroidUtil] not found FileProvider
W/JIGUANG-JPush: [AndroidUtil] AndroidManifest.xml missing required FileProvider or meta-data is wrong
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:install_status
W/JIGUANG-JPush: [AndroidUtil] You will unable to use install app of in-app message.
I/art: Do partial code cache collection, code=30KB, data=24KB
After code cache collection, code=29KB, data=23KB
Increasing code cache capacity to 128KB
D/JIGUANG-JCore: [HttpHelper] status code:401 retry left:2
E/ExampleUtil: getDeviceId: Neither user 10439 nor current process has android.permission.READ_PHONE_STATE.
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground_dy
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground
I/art: Do partial code cache collection, code=31KB, data=33KB
After code cache collection, code=30KB, data=33KB
Increasing code cache capacity to 256KB
I/art: Compiler allocated 7MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
D/ViewRootImpl@e508512[MainActivity]: ThreadedRenderer.create() translucent=false
D/InputTransport: Input channel constructed: fd=62
D/ViewRootImpl@e508512[MainActivity]: setView = DecorView@c537ee0[MainActivity] touchMode=true
E/PushMessageReceiver: [onNotificationSettingsCheck] isOn:true,source:0
W/Activity: AppLock checkAppLockState locked:false verifying:false pkgName = com.lantaizhengrui.app.mobile isInMultiWindowMode:false
D/ViewRootImpl@e508512[MainActivity]: dispatchAttachedToWindow
D/ViewRootImpl@e508512[MainActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 532282713600} surfaceGenerationChanged=true
D/ViewRootImpl@e508512[MainActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 532282713600} hwInitialized=true
D/libEGL: loaded /vendor/lib64/egl/libGLES_mali.so
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1440x2560]-format:1
D/ViewRootImpl@e508512[MainActivity]: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@e508512[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 532282713600}
D/SEM_CLIP_SemClipboardManager: isCocktailBarDisplayed : false
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@11a399c nm : com.lantaizhengrui.app.mobile ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=72
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@603fa5 nm : com.lantaizhengrui.app.mobile ic=null
D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras:
key:cn.jpush.android.CONNECTION_CHANGE, value:true
W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to true
E/PushMessageReceiver: [onConnected] true
D/ViewRootImpl@e508512[MainActivity]: ViewPostImeInputStage processPointer 0
W/System: ClassLoader referenced unknown path: /system/framework/QPerformance.jar
E/BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
V/BoostFramework: BoostFramework() : mPerf = null
D/ViewRootImpl@e508512[MainActivity]: ViewPostImeInputStage processPointer 1
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:get_rid
E/PushMessageReceiver: [onCommandResult] CmdMessage{cmd=2005, errorCode=0, msg='100d855909200dc63ba', extra=Bundle[{cmd=2005, code=0, message=100d855909200dc63ba}]}
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@95a2034 nm : com.lantaizhengrui.app.mobile ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=73
D/InputTransport: Input channel destroyed: fd=72
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground_dy
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground
E/PushMessageReceiver: [onConnected] false
D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras:
key:cn.jpush.android.CONNECTION_CHANGE, value:false
W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to false
E/PushMessageReceiver: [onConnected] true
D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras:
key:cn.jpush.android.CONNECTION_CHANGE, value:true
W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to true
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@da0cff7 nm : com.lantaizhengrui.app.mobile ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=53
D/InputTransport: Input channel destroyed: fd=73
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground_dy
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground
W/Activity: AppLock checkAppLockState locked:false verifying:false pkgName = com.lantaizhengrui.app.mobile isInMultiWindowMode:false
D/ViewRootImpl@e508512[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x1 surface={isValid=true 532282713600} surfaceGenerationChanged=false
D/ViewRootImpl@e508512[MainActivity]: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
D/ViewRootImpl@e508512[MainActivity]: ViewPostImeInputStage processPointer 0
D/JIGUANG-JPush: [ActionHelper] doAction:handle_msg
D/JIGUANG-JCommon: [JCommonInterface] onEvent action:get_receiver
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:user_present
D/JIGUANG-JPush: [JPushActionImpl] handle third message:android.intent.action.USER_PRESENT
D/ViewRootImpl@e508512[MainActivity]: ViewPostImeInputStage processPointer 1
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:get_rid
E/PushMessageReceiver: [onCommandResult] CmdMessage{cmd=2005, errorCode=0, msg='100d855909200dc63ba', extra=Bundle[{cmd=2005, code=0, message=100d855909200dc63ba}]}