DEV Community

Pham Quang Truong
Pham Quang Truong

Posted on

How to use Dagger in an Android Library?

I build an android library using Dagger 2. Can I use Dagger without application class?

Top comments (1)

Collapse
 
truongphamit profile image
Pham Quang Truong

My library should provide a custom Application that extends DaggerApplication. However, it is not recommended to use Dagger in a library