1Android Studio集成极光推送(Jpush) 报错 java.lang.UnsatisfiedLinkError: cn.jpush.android.service.PushProtoc

古人学问无遗力,少壮工夫老始成。这篇文章主要讲述1Android Studio集成极光推送(Jpush) 报错 java.lang.UnsatisfiedLinkError: cn.jpush.android.service.PushProtoc相关的知识,希望能为你提供帮助。
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文件
解决方法:

1Android Studio集成极光推送(Jpush) 报错 java.lang.UnsatisfiedLinkError: cn.jpush.android.service.PushProtoc

文章图片

【1Android Studio集成极光推送(Jpush) 报错 java.lang.UnsatisfiedLinkError: cn.jpush.android.service.PushProtoc】 

    推荐阅读