Note that there are some explanatory texts on larger screens.

plurals
  1. PODagger can't find injectable members
    text
    copied!<p>I've been trying to setup activity graphs for my Android application with Dagger (v1.1.0). Although it compiles fine, I get this error shown below (full trace <a href="http://pastebin.com/JVD3t17W" rel="nofollow">here</a>):</p> <pre><code>No injectable members on com.f2prateek.couchpotato.ui.ActivityActionBarController. Do you want to add an injectable constructor? required by class com.f2prateek.couchpotato.ui.fragments.DetailedMovieGridFragment </code></pre> <p>I'll do my best to highlight the important sections, but in case I miss something, my full project is on <a href="https://github.com/f2prateek/android-couchpotato/tree/activity-graphs" rel="nofollow">GitHub</a>. Just run <code>./gradlew clean assemble</code> to build the apk.</p> <p>My <a href="https://github.com/f2prateek/android-couchpotato/blob/activity-graphs/CouchPotato/src/main/java/com/f2prateek/couchpotato/modules/ActivityModule.java" rel="nofollow">ActivityModule</a> has the provider method that Dagger can't seem to find. </p> <pre><code>@Provides @Singleton ActivityActionBarController provideActionBarTitleController() { return new ActivityActionBarController(activity); } </code></pre> <p>This module is definitely being added to the applicationGraph (which then is saved as the activityGraph) in my <a href="https://github.com/f2prateek/android-couchpotato/blob/activity-graphs/CouchPotato/src/main/java/com/f2prateek/couchpotato/ui/base/BaseActivity.java#L47" rel="nofollow">BaseActivity</a>, and the <a href="https://github.com/f2prateek/android-couchpotato/blob/activity-graphs/CouchPotato/src/main/java/com/f2prateek/couchpotato/ui/base/BaseFragment.java#L33" rel="nofollow">BaseFragment</a> is injecting itself into the activityGraph.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload