2017-07-22 4 views
2

どういうわけか私のグラデルビルドに間違いがあります。どういうわけか私はクラスのバターナイフを見つけることができません。シンボルクラスが見つかりませんバターナイフの飾り

それはおそらく私のGradleによるものですが、私は知りません。

私はこのエラーを取得する:

Error:(40, 6) error: cannot find symbol class Bind

マイグレードのファイルは、次のようになります。

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion '25.0.0' 

    defaultConfig { 
     applicationId "de.andreasschrade.androidtemplate" 
     minSdkVersion 15 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile "com.android.support:appcompat-v7:${android_support_lib_version}" 
    compile "com.android.support:design:${android_support_lib_version}" 
    compile "com.android.support:cardview-v7:${android_support_lib_version}" 

    compile 'com.github.bumptech.glide:glide:3.6.1' 
    //compile 'com.jakewharton:butterknife:7.0.1' 
    compile 'com.squareup.retrofit2:retrofit:2.0.0' 
    compile 'com.squareup.retrofit2:converter-gson:2.0.0' 

    // api 
    //compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.squareup.retrofit2:retrofit:2.3.0' 
    compile 'com.squareup.retrofit2:converter-moshi:2.3.0' 
    //compile 'com.android.support:design:25.4.0' 
    compile 'com.jakewharton:butterknife:8.6.0' 
    compile 'com.basgeekball:awesome-validation:2.0' 
    compile 'com.facebook.stetho:stetho:1.5.0' 
    compile 'com.facebook.stetho:stetho-okhttp3:1.5.0' 
    compile 'com.facebook.android:facebook-android-sdk:[4,5)' 
    testCompile 'junit:junit:4.12' 
    testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' 
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0' 
    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1' 
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' 
} 
+0

14の代わりに15にminSdkVersionを変更するか、またはツール:overrideLibrary = "com.facebook" ' –

答えて

0

あなたは15の代わりに、14

にあなたのGradleファイル内の最小SDKのバージョンを変更する必要があります
defaultConfig { 
    applicationId "de.mynameis.androidtemplate" 
    minSdkVersion 15 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
} 
+0

を使用できます。申し訳ありませんが、私の質問を更新するのを忘れました。それではもう一度 – 35Hunne

+0

あなたはどこにバインドクラスを使用しているコードを貼り付けることができますか? –

+0

import butterknife.BindView; – 35Hunne

11

使用@BindView(butterknife:8.6.0)の代わりに、@Bind(butterk nife:7.0.1)

関連する問題