No static method setOnApplyWindowInsetsListener exception in Android

后端 未结 7 1605
借酒劲吻你
借酒劲吻你 2020-12-07 01:01

I downloaded yesterday Android Studio 2.1.3 (before I worked with 1.5) and now I have this exception:

java.lang.NoSuchMethodError: No static method setOnAppl         


        
7条回答
  •  我在风中等你
    2020-12-07 01:53

    I was facing the same issue.

    These are my configuration: compileSdkVersion 25 buildToolsVersion "25.0.2"

    Dependency: compile 'com.android.support:support-v4:25.3.1'

    I tried many things but finally it worked by updating Android SDK platform tools.

    Steps:

    1. Open SDK Manager
    2. Android SDK -> SDK tools
    3. Select Android SDK Platform - Tools (26.0.0) & Android SDK Tools (26.0.2)
    4. After downloading clean & build your project.

提交回复
热议问题