bluelinelabs / LoganSquare

Screaming fast JSON parsing and serialization library for Android.
Apache License 2.0
3.21k stars 306 forks source link

Using both LoganSquare and butterknife ,conflicts #192

Open zhangxuehao opened 7 years ago

zhangxuehao commented 7 years ago

Using both LoganSquare and butterknife ,conflicts

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

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"

    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
    }

    defaultConfig {
        applicationId "com.squizzz"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

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

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    testCompile 'junit:junit:4.12'
    compile 'com.bluelinelabs:logansquare:1.3.2'
    provided  'com.bluelinelabs:logansquare-compiler:1.3.2'
    compile 'com.jakewharton:butterknife:8.4.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
    compile project(':framework')
}
mannodermaus commented 7 years ago

What conflicts do you get? Why didn't you add logansquare-compiler as an annotationProcessor dependency, like you did with Butterknife's? Also, you don't need to apply the android-apt plugin anymore if you're adding the annotation processors with annotationProcessor.

zhangxuehao commented 7 years ago

Ok. Is indeed wrong.