android

android-apt切换为annotationProcesso

2016-10-27  本文已影响1856人  10Buns

需要把Gradle 插件版本升级到 2.2(含)以上

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        //remove android-apt
        //classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
    }
}
//remove
//apply plugin: 'com.neenbedankt.android-apt'

...

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.4.0'
    // update apt to annotationProcessor
    //apt 'com.google.dagger:dagger-compiler:2.2'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.2'
    compile 'com.google.dagger:dagger:2.2
}
上一篇下一篇

猜你喜欢

热点阅读