android 初始化错误

android
标签: #<Tag:0x00007fb83f5c4d70>

(我是谁) #1

android jcenter 集成极光推送 报错

 java.lang.NoSuchMethodError: No static method si(Landroid/content/Context;ILandroid/os/Bundle;)Landroid/os/Bundle; in class Lcn/jiguang/api/JCoreInterface; or its super classes (declaration of 'cn.jiguang.api.JCoreInterface' appears in /data/app/com.fq.android.fangtai-2/base.apk:classes58.dex)
    at cn.jpush.android.api.JPushInterface.init(Unknown Source)
    at com.fq.android.fangtai.MyApplication.onCreate(MyApplication.java:376)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5518)
    at android.app.ActivityThread.-wrap2(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1608)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:165)
    at android.app.ActivityThread.main(ActivityThread.java:6354)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:883)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)

#2

提供完整的报错信息和你集成的配置


(我是谁) #3

已经改了这个问题,clean了一下就好了,因为本来是手动集成,现在改成了自动集成。之前使用的是清理编译器的缓存,并没有成功 :joy: