首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >静态接口方法仅支持从Android (--min 24)开始: void butterknife.Unbinder.lambda$static$0()

静态接口方法仅支持从Android (--min 24)开始: void butterknife.Unbinder.lambda$static$0()
EN

Stack Overflow用户
提问于 2020-06-14 10:54:25
回答 1查看 2.3K关注 0票数 4

当我遇到这个错误时,我正试图调试一个应用程序。

只支持从Android (--min 24)开始的

静态接口方法: void ()

这是我的秤

代码语言:javascript
复制
apply plugin: 'com.android.application'

    android {
        compileSdkVersion 29
        buildToolsVersion "29.0.3"

    defaultConfig {
        applicationId "com.github.webrtc"
        minSdkVersion 19
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
        }
    }




    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        androidTestCompile('androidx.test.espresso:espresso-core:3.1.0', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        implementation 'fi.vtt.nubomedia:kurento-room-client-android:1.1.2' 
        implementation 'org.whispersystems:webrtc-android:M59'
        implementation 'com.jakewharton:butterknife:10.0.0'
        annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
        implementation "org.java-websocket:Java-WebSocket:1.3.0"
        implementation 'com.squareup.okhttp3:okhttp:3.9.0'
        implementation 'androidx.appcompat:appcompat:1.1.0'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'androidx.test.ext:junit:1.1.1'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    }
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-06-14 10:59:54

阅读蝴蝶刀的github页面的“下载”部分。

https://github.com/JakeWharton/butterknife

代码语言:javascript
复制
android {
  ...
  // Butterknife requires Java 8.
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}

dependencies {
  implementation 'com.jakewharton:butterknife:10.2.1'
  annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
}

您需要添加compileOptions部件。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62371518

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档