Hey Xavier, thanks for your response. You're absolutely right.

Actually my case was a little bit more complicated. I use retrolambda 
plugin and in v2.4.0 of this plugin there was an issue: when dependency to 
dagger-compiler (dagger 2) was set as 'apt', sources generated by 
dagger-compiler did not appear under build/retrolambda source set. I found 
a workaround by setting dependency to dagger-compile to 'compile' instead 
of 'apt'. Unfortunately that lead me to have dagger-compiler packaged into 
APK.

In the meantime I found out that my issue was fixed in v2.4.1. Indeed, with 
this version of retrolambda plugin Dagger2 works like a charm. The only 
thing to remember is to apply retrolambda plugin BEFORE android-apt plugin 
at it is said in retrolambda plugin docs 
<https://github.com/evant/gradle-retrolambda>.

Cheers,
M.

On Wednesday, December 10, 2014 5:44:07 PM UTC+1, Xavier Ducrohet wrote:
>
> You need to configure Gradle to run the annotation processor. Studio 
> exclusively uses Gradle to build, so configuring the processor in Studio 
> does'nt make any sense.
>
> There's an 'apt' plugin that helps using annotation processor with our 
> plugin: https://bitbucket.org/hvisser/android-apt
>
> On Wed, Dec 10, 2014 at 6:31 AM, Mateusz Grzechociński <
> mateusz.gr...@gmail.com <javascript:>> wrote:
>
>> Hey,
>>
>> I was trying to find the issue on SO and found only this: 
>> http://stackoverflow.com/questions/24787751/compiler-options-missing-in-android-studio-0-8-2
>>
>> Basically, in Android Studio 1.0 (and I guess in the previous versions as 
>> well) there is no 'Compiler' section in preferences.
>> Since that, I'm no longer able to enable annotation processor in AS, so 
>> things like Dagger doesn't generate the code and I have to rebuild project 
>> from command line. 
>>
>> Has anyone found any solution? What's event more interesting, as it's 
>> said on SO, sometimes when I restart AS, 'Compiler' settings show-up for a 
>> while and then they disappear.
>>
>> M.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to adt-dev+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks!
>  

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to