[JCoreGlobal] Get sdk version fail![获取sdk版本失败!]

android
收不到消息
标签: #<Tag:0x00007fb83c56a1c0> #<Tag:0x00007fb83c56a080>

(白小康) #1

这是我的报错信息

10-23 13:27:29.876 14958-14958/? D/dalvikvm: Late-enabling CheckJNI
10-23 13:27:29.936 14958-14964/? D/dalvikvm: Debugger has detached; object registry had 3 entries
10-23 13:27:29.936 14958-14958/? D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.9, buildId:384
10-23 13:27:29.976 14958-14958/? D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - ee2e02cd8d63d3cb3b7d7b2a
10-23 13:27:29.976 14958-14958/? D/JIGUANG-JCore: [JCoreGlobal] metadata: channel - developer-default
10-23 13:27:29.976 14958-14958/? D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
10-23 13:27:29.976 14958-14958/? D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
10-23 13:27:29.986 14958-14958/? D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.1.7, buildId:155
10-23 13:27:29.986 14958-14958/? W/System.err: java.lang.UnsatisfiedLinkError: Couldn't load jcore117 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.hengwangshop-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.hengwangshop-2, /system/lib]]]: findLibrary returned null
10-23 13:27:29.996 14958-14958/? W/System.err:     at java.lang.Runtime.loadLibrary(Runtime.java:358)
10-23 13:27:29.996 14958-14958/? W/System.err:     at java.lang.System.loadLibrary(System.java:526)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.service.Protocol.<clinit>(Unknown Source)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.api.JCoreInterface.init(Unknown Source)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(SourceFile:112)
10-23 13:27:29.996 14958-14958/? W/System.err:     at com.hengwangshop.net.App.onCreate(App.java:60)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4346)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread.access$1500(ActivityThread.java:135)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.os.Looper.loop(Looper.java:136)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5019)
10-23 13:27:29.996 14958-14958/? W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)
10-23 13:27:29.996 14958-14958/? W/System.err:     at java.lang.reflect.Method.invoke(Method.java:515)
10-23 13:27:29.996 14958-14958/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
10-23 13:27:29.996 14958-14958/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
10-23 13:27:29.996 14958-14958/? W/System.err:     at dalvik.system.NativeStart.main(Native Method)
10-23 13:27:29.996 14958-14958/? W/dalvikvm: No implementation found for native Lcn/jiguang/service/Protocol;.GetSdkVersion:()I
10-23 13:27:29.996 14958-14958/? E/JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
10-23 13:27:29.996 14958-14958/? W/System.err: java.lang.UnsatisfiedLinkError: Native method not found: cn.jiguang.service.Protocol.GetSdkVersion:()I
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jiguang.api.JCoreInterface.init(Unknown Source)
10-23 13:27:29.996 14958-14958/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(SourceFile:112)
10-23 13:27:29.996 14958-14958/? W/System.err:     at com.hengwangshop.net.App.onCreate(App.java:60)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4346)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread.access$1500(ActivityThread.java:135)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.os.Looper.loop(Looper.java:136)
10-23 13:27:29.996 14958-14958/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5019)
10-23 13:27:29.996 14958-14958/? W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)
10-23 13:27:29.996 14958-14958/? W/System.err:     at java.lang.reflect.Method.invoke(Method.java:515)
10-23 13:27:29.996 14958-14958/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
10-23 13:27:29.996 14958-14958/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
10-23 13:27:29.996 14958-14958/? W/System.err:     at dalvik.system.NativeStart.main(Native Method)
10-23 13:27:29.996 14958-14958/? E/JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
10-23 13:27:29.996 14958-14958/? W/JIGUANG-JCore: [JCoreInterface] JCore init failed
10-23 13:27:29.996 14958-14958/? D/MicroMsg.PaySdk.WXFactory: createWXAPI, appId = null, checkSignature = false
10-23 13:27:29.996 14958-14958/? D/MicroMsg.SDK.WXApiImplV10: <init>, appId = null, checkSignature = false
10-23 13:27:29.996 14958-14958/? D/MicroMsg.SDK.WXMsgImplComm: ignore wechat app signature validation
10-23 13:27:29.996 14958-14958/? D/MicroMsg.SDK.WXApiImplV10: registerApp, appId = wxd930ea5d5a258f4f
10-23 13:27:29.996 14958-14958/? W/MicroMsg.SDK.WXApiImplV10: context is not instanceof Activity or Service, disable WXStat
10-23 13:27:29.996 14958-14958/? D/MicroMsg.SDK.WXApiImplV10: registerApp, appId = wxd930ea5d5a258f4f
10-23 13:27:29.996 14958-14958/? D/MicroMsg.SDK.WXApiImplV10: register app com.hengwangshop
10-23 13:27:30.006 14958-14962/? D/dalvikvm: JIT code cache reset in 0 ms (0 bytes 1/0)
10-23 13:27:30.006 14958-14962/? D/dalvikvm: GC_CONCURRENT freed 281K, 11% free 2944K/3288K, paused 1ms+0ms, total 8ms
10-23 13:27:30.016 14958-14958/? D/MicroMsg.SDK.MMessage: 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
10-23 13:27:30.026 14958-14958/? I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
10-23 13:27:30.026 14958-14958/? W/dalvikvm: VFY: unable to resolve interface method 22148: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
10-23 13:27:30.026 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
10-23 13:27:30.026 14958-14958/? W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
10-23 13:27:30.026 14958-14958/? I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
10-23 13:27:30.026 14958-14958/? W/dalvikvm: VFY: unable to resolve interface method 22150: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
10-23 13:27:30.026 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
10-23 13:27:30.026 14958-14958/? I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
10-23 13:27:30.026 14958-14958/? W/dalvikvm: VFY: unable to resolve interface method 22154: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
10-23 13:27:30.026 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
10-23 13:27:30.026 14958-14958/? I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
10-23 13:27:30.026 14958-14958/? W/dalvikvm: VFY: unable to resolve virtual method 751: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
10-23 13:27:30.026 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
10-23 13:27:30.026 14958-14958/? I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
10-23 13:27:30.026 14958-14958/? W/dalvikvm: VFY: unable to resolve virtual method 773: Landroid/content/res/TypedArray;.getType (I)I
10-23 13:27:30.026 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
10-23 13:27:30.046 14958-14962/? D/dalvikvm: GC_CONCURRENT freed 160K, 7% free 3259K/3488K, paused 1ms+0ms, total 4ms
10-23 13:27:30.056 14958-14958/? I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
10-23 13:27:30.056 14958-14958/? W/dalvikvm: VFY: unable to resolve virtual method 714: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
10-23 13:27:30.056 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
10-23 13:27:30.056 14958-14958/? I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
10-23 13:27:30.056 14958-14958/? W/dalvikvm: VFY: unable to resolve virtual method 716: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
10-23 13:27:30.056 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
10-23 13:27:30.056 14958-14958/? I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
10-23 13:27:30.056 14958-14958/? W/dalvikvm: VFY: unable to resolve virtual method 506: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
10-23 13:27:30.056 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
10-23 13:27:30.066 14958-14958/? E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
10-23 13:27:30.086 14958-14958/? W/dalvikvm: VFY: unable to resolve instanceof 351 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
10-23 13:27:30.086 14958-14958/? D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c
10-23 13:27:30.106 14958-14958/? D/dalvikvm: GC_FOR_ALLOC freed 21K, 6% free 3611K/3824K, paused 5ms, total 5ms
10-23 13:27:30.126 14958-14962/? D/dalvikvm: GC_CONCURRENT freed 21K, 5% free 3988K/4184K, paused 0ms+1ms, total 3ms
10-23 13:27:30.126 14958-14958/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 2ms
10-23 13:27:30.166 14958-14962/? D/dalvikvm: GC_CONCURRENT freed 353K, 10% free 4112K/4528K, paused 1ms+0ms, total 5ms
10-23 13:27:30.256 14958-14977/? W/dalvikvm: VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
10-23 13:27:30.256 14958-14977/? W/dalvikvm: VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
10-23 13:27:30.256 14958-14977/? I/dalvikvm: Could not find method java.nio.file.Files.newOutputStream, referenced from method okio.Okio.sink
10-23 13:27:30.256 14958-14977/? W/dalvikvm: VFY: unable to resolve static method 42489: Ljava/nio/file/Files;.newOutputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
10-23 13:27:30.256 14958-14977/? D/dalvikvm: VFY: replacing opcode 0x71 at 0x000a
10-23 13:27:30.256 14958-14977/? W/dalvikvm: VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
10-23 13:27:30.256 14958-14977/? W/dalvikvm: VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
10-23 13:27:30.256 14958-14977/? I/dalvikvm: Could not find method java.nio.file.Files.newInputStream, referenced from method okio.Okio.source
10-23 13:27:30.256 14958-14977/? W/dalvikvm: VFY: unable to resolve static method 42488: Ljava/nio/file/Files;.newInputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
10-23 13:27:30.256 14958-14977/? D/dalvikvm: VFY: replacing opcode 0x71 at 0x000a
10-23 13:27:30.326 14958-14962/? D/dalvikvm: GC_CONCURRENT freed 192K, 7% free 4324K/4608K, paused 3ms+1ms, total 7ms
10-23 13:27:30.516 14958-14958/? D/libEGL: loaded /system/lib/egl/libEGL_adreno.so
                                           
                                           [ 10-23 13:27:30.526 14958:14958 D/         ]
                                           HostConnection::get() New Host Connection established 0xb8d45340, tid 14958
10-23 13:27:30.526 14958-14958/? D/libEGL: loaded /system/lib/egl/libGLESv1_CM_adreno.so
10-23 13:27:30.526 14958-14958/? D/libEGL: loaded /system/lib/egl/libGLESv2_adreno.so
10-23 13:27:30.606 14958-14958/? W/EGL_emulation: eglSurfaceAttrib not implemented
10-23 13:27:30.606 14958-14958/? D/OpenGLRenderer: Enabling debug mode 0
10-23 13:27:30.976 14958-14981/com.hengwangshop D/dalvikvm: GC_FOR_ALLOC freed 382K, 10% free 4455K/4896K, paused 3ms, total 3ms
10-23 13:27:30.996 14958-14981/com.hengwangshop D/dalvikvm: GC_FOR_ALLOC freed 103K, 9% free 4604K/5052K, paused 11ms, total 11ms

我的项目文件目录


#2

(白小康) #4

我已经按照这个常见问题操作了一遍 还是不行 帮我看下 是不是我的文件路径 或者配置做错 ,我上面已经截图发给你们了 谢谢


#5

你好,把你task里面ndk和jni的配置去掉,你这样不会编译ndk的


(白小康) #6

非常感谢 我这边按照你说的操作 已经成功了 谢谢


(白小康) #7

你好 我这边可以收到消息了 但是点击通知栏消息,项目就崩溃了
一下是错误日志 麻烦看下

10-25 06:53:12.032 20080-20080/com.hengwangshop E/AndroidRuntime: FATAL EXCEPTION: main
 Process: com.hengwangshop, PID: 20080
java.lang.RuntimeException: Unable to instantiate receiver com.example.jpushdemo.MyReceiver: java.lang.ClassNotFoundException: Didn't find class "com.example.jpushdemo.MyReceiver" on path: DexPathList[[zip file "/data/app/com.hengwangshop-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.hengwangshop-1, /system/lib]]
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2398)
at android.app.ActivityThread.access$1700(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1272)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5019)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.jpushdemo.MyReceiver" on path: DexPathList[[zip file "/data/app/com.hengwangshop-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.hengwangshop-1, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2393)
at android.app.ActivityThread.access$1700(ActivityThread.java:135) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1272) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5019) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
at dalvik.system.NativeStart.main(Native Method) 
10-25 06:53:12.042 20080-23784/com.hengwangshop D/JIGUANG-JCore: [HttpHelper] status code:200

(白小康) #8


#9

参考demo,去检查你的点击跳转,这里是你要自己实现的

点击通知跳转,需要你自己写代码实现,数据传递上,推送时可以通extras带自定义的字段信息,收到时获取extras根据你自己的规则进行跳转.
推送时传extra:示例说明 https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#_7

极光需要的配置就是在AndroidManifest里面配置 https://docs.jiguang.cn/jpush/client/Android/android_api/#receiver
其他的你自己实现。Android参考: https://docs.jiguang.cn/jpush/client/Android/android_senior/#vs


(白小康) #10

嗯 我知道了 感谢