zoukankan      html  css  js  c++  java
  • 1、Android Studio集成极光推送(Jpush) 报错 java.lang.UnsatisfiedLinkError: cn.jpush.android.service.PushProtoco

    Android studio 集成极光推送(Jpush) (华为手机)报错,

    E/JPush: [JPushGlobal] Get sdk version fail![获取sdk版本失败!]

    W/System.err: java.lang.UnsatisfiedLinkError: cn.jpush.android.service.PushProtocol
    W/System.err:     at cn.jpush.android.b.a(Unknown Source)
    W/System.err:     at cn.jpush.android.b.a(Unknown Source)
    W/System.err:     at cn.jpush.android.api.JPushInterface.init(Unknown Source)
    W/System.err:     at com.ziben365.ocapp.MainActivity.init(MainActivity.java:509)
    W/System.err:     at com.ziben365.ocapp.MainActivity.onCreate(MainActivity.java:102)
    W/System.err:     at android.app.Activity.performCreate(Activity.java:6100)
    W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
    W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
    W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
    W/System.err:     at android.app.ActivityThread.access$1200(ActivityThread.java:163)
    W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371)
    W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err:     at android.os.Looper.loop(Looper.java:135)
    W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5595)
    W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
    W/System.err:     at java.lang.reflect.Method.invoke(Method.java:372)
    W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
    W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)

    E/JPush: [JPushGlobal] JPush .so file do not match JPush .jar file in the project, Failed to init JPush

     

    原因:是由于Android Studio没有正确加载.so文件

    解决方法:

  • 相关阅读:
    ISP基础(01):ISP模块列表
    Linux 开发(02):打印特殊含义转义符
    note template
    apply、call、bind的区别
    Fiddle 抓包工具
    post和get的使用场景和区别
    闭包
    原型链
    node.js
    CSS垂直居中
  • 原文地址:https://www.cnblogs.com/androidsj/p/6198513.html
Copyright © 2011-2022 走看看