Unity 打包Android 无法正常注册 GetRegistrationId 为空
Unity 打包Android 无法正常注册 GetRegistrationId 为空
Unity打包Android之后log信息如下:
05-25 09:36:42.274 27450 27476 W System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.wish.JpushTest-1/base.apk"],nativeLibraryDirectories=[/data/app/com.wish.JpushTest-1/lib/arm, /data/app/com.wish.JpushTest-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libjcore121.so"
05-25 09:36:42.274 27450 27476 W System.err: at java.lang.Runtime.loadLibrary0(Runtime.java:972)
05-25 09:36:42.274 27450 27476 W System.err: at java.lang.System.loadLibrary(System.java:1530)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jiguang.service.Protocol.<clinit>(Unknown Source)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jiguang.d.a.a(Unknown Source)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jiguang.d.a.d(Unknown Source)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jiguang.d.a.b(Unknown Source)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jiguang.api.JCoreInterface.init(Unknown Source)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jpush.android.api.JPushInterface.init(SourceFile:110)
05-25 09:36:42.274 27450 27476 W System.err: at cn.jiguang.unity.push.JPushBridge.initPush(JPushBridge.java:54)
05-25 09:36:42.274 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
05-25 09:36:42.274 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.a(Unknown Source)
05-25 09:36:42.274 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
05-25 09:36:42.274 27450 27476 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
05-25 09:36:42.274 27450 27476 W System.err: at android.os.Looper.loop(Looper.java:163)
05-25 09:36:42.274 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
05-25 09:36:42.295 27450 27476 E art : No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.295 27450 27476 E JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
05-25 09:36:42.296 27450 27476 W System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.296 27450 27476 W System.err: at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
05-25 09:36:42.296 27450 27476 W System.err: at cn.jiguang.d.a.a(Unknown Source)
05-25 09:36:42.296 27450 27476 W System.err: at cn.jiguang.d.a.d(Unknown Source)
05-25 09:36:42.296 27450 27476 W System.err: at cn.jiguang.d.a.b(Unknown Source)
05-25 09:36:42.296 27450 27476 W System.err: at cn.jiguang.api.JCoreInterface.init(Unknown Source)
05-25 09:36:42.296 27450 27476 W System.err: at cn.jpush.android.api.JPushInterface.init(SourceFile:110)
05-25 09:36:42.296 27450 27476 W System.err: at cn.jiguang.unity.push.JPushBridge.initPush(JPushBridge.java:54)
05-25 09:36:42.296 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
05-25 09:36:42.296 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.a(Unknown Source)
05-25 09:36:42.296 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
05-25 09:36:42.296 27450 27476 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
05-25 09:36:42.296 27450 27476 W System.err: at android.os.Looper.loop(Looper.java:163)
05-25 09:36:42.296 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
05-25 09:36:42.296 27450 27476 E JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
05-25 09:36:42.296 27450 27476 W JIGUANG-JCore: [JCoreInterface] JCore init failed
05-25 09:36:42.319 27450 27476 I Unity : Init
05-25 09:36:42.319 27450 27476 I Unity :
05-25 09:36:42.319 27450 27476 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
05-25 09:36:42.319 27450 27476 I Unity :
05-25 09:36:42.320 27450 27476 I Unity : SetDebug
05-25 09:36:42.320 27450 27476 I Unity :
05-25 09:36:42.320 27450 27476 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
05-25 09:36:42.320 27450 27476 I Unity :
05-25 09:36:42.326 27450 27476 D JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
05-25 09:36:42.327 750 750 I cnss-daemon: RTM_NEWNEIGH message received: 28
05-25 09:36:42.327 750 750 E cnss-daemon: Stale or unreachable neighbors, ndm state: 4
05-25 09:36:42.340 27450 27476 D JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-25 09:36:42.342 27450 27476 D JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.1, buildId:188
05-25 09:36:42.343 27450 27476 E art : No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.344 27450 27476 E JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
05-25 09:36:42.344 27450 27476 W System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jiguang.d.a.a(Unknown Source)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jiguang.d.a.d(Unknown Source)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jiguang.d.a.b(Unknown Source)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jiguang.api.JCoreInterface.sendAction(Unknown Source)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jpush.android.service.ServiceInterface.a(SourceFile:140)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jpush.android.a.k.a(SourceFile:91)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jpush.android.a.k.a(SourceFile:154)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jpush.android.api.JPushInterface.setTags(SourceFile:410)
05-25 09:36:42.344 27450 27476 W System.err: at cn.jiguang.unity.push.JPushBridge.setTags(JPushBridge.java:118)
05-25 09:36:42.344 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
05-25 09:36:42.344 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.a(Unknown Source)
05-25 09:36:42.344 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
05-25 09:36:42.344 27450 27476 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
05-25 09:36:42.344 27450 27476 W System.err: at android.os.Looper.loop(Looper.java:163)
05-25 09:36:42.344 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
05-25 09:36:42.344 27450 27476 E JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
05-25 09:36:42.387 27450 27476 I Unity : SetTags:1 TestPush
05-25 09:36:42.387 27450 27476 I Unity :
05-25 09:36:42.387 27450 27476 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
05-25 09:36:42.387 27450 27476 I Unity :
05-25 09:36:42.390 27450 27476 D JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-25 09:36:42.392 27450 27476 D JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.1, buildId:188
05-25 09:36:42.393 27450 27476 E art : No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.393 27450 27476 E JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
05-25 09:36:42.393 27450 27476 W System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jiguang.d.a.a(Unknown Source)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jiguang.d.a.d(Unknown Source)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jiguang.d.a.b(Unknown Source)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jiguang.api.JCoreInterface.sendAction(Unknown Source)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jpush.android.service.ServiceInterface.a(SourceFile:140)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jpush.android.a.k.a(SourceFile:91)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jpush.android.a.k.a(SourceFile:150)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jpush.android.api.JPushInterface.setAlias(SourceFile:476)
05-25 09:36:42.393 27450 27476 W System.err: at cn.jiguang.unity.push.JPushBridge.setAlias(JPushBridge.java:168)
05-25 09:36:42.393 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
05-25 09:36:42.393 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.a(Unknown Source)
05-25 09:36:42.393 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
05-25 09:36:42.393 27450 27476 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
05-25 09:36:42.393 27450 27476 W System.err: at android.os.Looper.loop(Looper.java:163)
05-25 09:36:42.393 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
05-25 09:36:42.394 27450 27476 E JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
05-25 09:36:42.395 27450 27476 I Unity : SetAlias:1 TestPush
05-25 09:36:42.395 27450 27476 I Unity :
05-25 09:36:42.395 27450 27476 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
05-25 09:36:42.395 27450 27476 I Unity :
05-25 09:36:42.402 27450 27476 D JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-25 09:36:42.404 27450 27476 D JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.1, buildId:188
05-25 09:36:42.405 27450 27476 E art : No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.405 27450 27476 E JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
05-25 09:36:42.405 27450 27476 W System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jiguang.d.a.a(Unknown Source)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jiguang.d.a.d(Unknown Source)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jiguang.d.a.b(Unknown Source)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jiguang.api.JCoreInterface.init(Unknown Source)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jiguang.api.JCoreInterface.getRegistrationID(Unknown Source)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jpush.android.api.JPushInterface.getRegistrationID(SourceFile:226)
05-25 09:36:42.405 27450 27476 W System.err: at cn.jiguang.unity.push.JPushBridge.getRegistrationId(JPushBridge.java:89)
05-25 09:36:42.405 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
05-25 09:36:42.405 27450 27476 W System.err: at com.unity3d.player.UnityPlayer.a(Unknown Source)
05-25 09:36:42.406 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
05-25 09:36:42.406 27450 27476 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
05-25 09:36:42.406 27450 27476 W System.err: at android.os.Looper.loop(Looper.java:163)
05-25 09:36:42.406 27450 27476 W System.err: at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
05-25 09:36:42.406 27450 27476 E JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
05-25 09:36:42.406 27450 27476 W JIGUANG-JCore: [JCoreInterface] JCore init failed
05-25 09:36:42.408 27450 27476 I Unity : GetRegistrationId:
05-25 09:36:42.408 27450 27476 I Unity :
05-25 09:36:42.408 27450 27476 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
05-25 09:36:42.408 27450 27476 I Unity :
请大佬解答 谢谢