小编Dee*_*ore的帖子

无法使用Butterknife 8.1.0注入视图

我想在我的项目中使用Butterknife.如上所述我在这里设置了Butterknife.

在项目级别模块中:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
Run Code Online (Sandbox Code Playgroud)

在模块级别

apply plugin: 'com.android.application'
apply plugin: 'android-apt'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.id.myprojectid"
        minSdkVersion 11
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    useLibrary 'org.apache.http.legacy'
}


dependencies { …
Run Code Online (Sandbox Code Playgroud)

android android-view butterknife

6
推荐指数
2
解决办法
2867
查看次数

标签 统计

android ×1

android-view ×1

butterknife ×1