google / dagger

A fast dependency injector for Android and Java.
https://dagger.dev
Apache License 2.0
17.44k stars 2.01k forks source link

about com.neenbedankt.android-apt #576

Closed softboy99 closed 7 years ago

softboy99 commented 7 years ago

Hi, for the latest android studio 2.3 beta3, if we want to use dagger2, do we still need plugin:"com.neenbedankt.android-apt"? or just "compile 'com.google.dagger:dagger:2.x' annotationProcessor 'com.google.dagger:dagger-compiler:2.x'"?

JakeWharton commented 7 years ago

The version of Android Studio is of no consequence. If you are using version 2.2 of the Android Gradle plugin (or newer) then you can use annotationProcessor and do not need the apt plugin.

On Sun, Feb 5, 2017, 2:08 AM softboy99 notifications@github.com wrote:

Hi, for the latest android studio 2.3 beta3, if we want to use dagger2, do we still need plugin:"com.neenbedankt.android-apt"? or just "compile 'com.google.dagger🗡2.x' annotationProcessor 'com.google.dagger:dagger-compiler:2.x'"?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/dagger/issues/576, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEXzwsUxg5Vq7eqjsScDkteo81K_Eks5rZXWCgaJpZM4L3are .

Taranmeet commented 6 years ago

I am trying to use 2.14.1 on Android Studio 3.0.1 and keep getting compile time error Could not resolve com.squareup:javapoet:1.8.0 My app.gradle has following dependencies

    implementation 'com.google.dagger:dagger:2.14.1'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.14.1'

    implementation 'com.google.dagger:dagger-android:2.14.1'
    implementation 'com.google.dagger:dagger-android-support:2.14.1'
    annotationProcessor 'com.google.dagger:dagger-android-processor:2.14.1'