运行错误:java.lang.NoSuchMethodError: No static method setOnApplyWindowInsetsListener

                                                                  
                                                                     --------- beginning of crash
11-02 16:18:42.387 8847-8847/******************* E/AndroidRuntime: FATAL EXCEPTION: main
                                                                     Process: ******************, PID: 8847
                                                                     java.lang.NoSuchMethodError: No static method setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V in class Landroid/support/v4/view/ViewCompatLollipop; or its super classes (declaration of 'android.support.v4.view.ViewCompatLollipop' appears in /data/data/cniao5.com.cniao5shop/files/instant-run/dex/slice-internal_impl-24.2.1_095ba6aca9b459f15b4fd0376ec0c7843284a3ca-classes.dex)
                                                                         at android.support.v4.view.ViewCompat$LollipopViewCompatImpl.setOnApplyWindowInsetsListener(ViewCompat.java:1558)
                                                                         at android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(ViewCompat.java:2829)
                                                                         at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:425)
                                                                         at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:312)
                                                                         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:277)
                                                                         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
                                                                         at ****************.MainActivity.onCreate(MainActivity.java:38)
                                                                         at android.app.Activity.performCreate(Activity.java:6303)
                                                                         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483)
                                                                         at android.app.ActivityThread.access$900(ActivityThread.java:153)
                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                         at android.os.Looper.loop(Looper.java:148)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:5438)
                                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

11-02 16:21:36.628 8847-8847/***************** I/Process: Sending signal. PID: 8847 SIG: 9


错误原因:support库版本不兼容,facebook fresco v0.14.1依赖于support compat,core-utils v24.2.1,而工程中其它support库为23.4.0

解决方案:facebook fresco降版本v0.12.0

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值