Fatal Exception: NoSuchMethodError: No static method setOnApplyWindowInsetsListener

前端 未结 2 1297
礼貌的吻别
礼貌的吻别 2021-01-19 10:25

How I can fix this ?

FATAL EXCEPTION: main Process: a6e69.materialdesigntest

相关标签:
2条回答
  • 2021-01-19 10:51

    Please update the following in your gradle file in the following

    compileSdkVersion 24
    buildToolsVersion "24.0.1"
    
    targetSdkVersion to 24
    
    compile 'com.android.support:appcompat-v7:24.2.0'
    compile 'com.android.support:support-v4:24.2.0'
    compile 'com.android.support:recyclerview-v7:24.2.0'
    

    Note: Please use the latest version for the libraries and avoid using + like you are doing for your recyclerview. Infact you should be getting this warning as well in android studio.

    0 讨论(0)
  • 2021-01-19 11:13

    simply,change AppCompatActivity to Acticity

    0 讨论(0)
提交回复
热议问题