Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using both LoganSquare and butterknife ,conflicts #192

Open
zhangxuehao opened this issue Dec 22, 2016 · 2 comments
Open

Using both LoganSquare and butterknife ,conflicts #192

zhangxuehao opened this issue Dec 22, 2016 · 2 comments

Comments

@zhangxuehao
Copy link

zhangxuehao commented Dec 22, 2016

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')
}
@zhangxuehao zhangxuehao changed the title sing both LoganSquare and butterknife ,conflicts Using both LoganSquare and butterknife ,conflicts Dec 22, 2016
@mannodermaus
Copy link
Contributor

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
Copy link
Author

Ok. Is indeed wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants