Dec 13, 2017 · Android Studio should automatically create any necessary import statements for you. But if not, hit option+return on Mac or Alt+Enter on PC to create them as needed. The @Module annotation tells Dagger that the AppModule class will provide dependencies for a part of the application.
If you use Android Studio 1.3 / IntelliJ IDEA. Download Mirror 2.5.7 for Android Studio 1.3 / IDEA. If you use other IDEs or editors. Tip: if your projects are gradle-based, but you want to edit the files using other editors, just start the Mirror Android Studio plugin and it will pick up changes you made outside of Android Studio too.