黄油刀同步问题

时间:2018-02-06 14:31:03

标签: android butterknife

你一直遇到黄油刀设置问题。不知道我哪里出错了,好像试过多个解决方案但没有运气。任何帮助将不胜感激。

以下是构建项目级别

buildscript {

repositories {
    google()
    jcenter()
    mavenCentral()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
    classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'

}

模块级别

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

android {
compileSdkVersion 26
defaultConfig {
    applicationId "com.example.cormac.gymappproject"
    minSdkVersion 15
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner 
 "android.support.test.runner.AndroidJUnitRunner"
      }
   buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 
  'proguard-rules.pro'
                 }
              }
         }

    dependencies {
          implementation fileTree(dir: 'libs', include: ['*.jar'])
          implementation 'com.android.support:appcompat-v7:26.1.0'
          implementation 'com.android.support.constraint:constraint-
    layout:1.0.2'
          testImplementation 'junit:junit:4.12'
           androidTestImplementation 'com.android.support.test:runner:1.0.1'
           androidTestImplementation 
        'com.android.support.test.espresso:espresso-core:3.0.1'
       compile 'com.jakewharton:butterknife:8.8.1'
       annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
       }

[1]:https://i.stack.imgur.com/csnSd.png

0 个答案:

没有答案