apt dependency scope in Android gradle - what is it used for?

前端 未结 2 2045
傲寒
傲寒 2020-12-24 01:37

What is the apt dependency scope in android gradle files i see sometimes ?

An example looks like this?

apply plugin: \'com.android.application\'
appl         


        
2条回答
  •  孤独总比滥情好
    2020-12-24 01:56

    Just to add how to change this in Studio 2.2 +

    dependencies {
        compile 'com.google.dagger:dagger:2.4'
        annotationProcessor "com.google.dagger:dagger-compiler:2.4"
    }
    

    Add this in apps gradle module. No need to change any other thing.

    Happy coding :)

提交回复
热议问题