Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve DaggerDeps #3

Open
hafs-r opened this issue Nov 2, 2016 · 4 comments
Open

Resolve DaggerDeps #3

hafs-r opened this issue Nov 2, 2016 · 4 comments

Comments

@hafs-r
Copy link

hafs-r commented Nov 2, 2016

import com.plaps.androidcleancode.deps.DaggerDeps;

import com.plaps.androidcleancode.deps.Deps;
import com.plaps.androidcleancode.networking.NetworkModule;

import java.io.File;

/**

  • Created by ennur on 6/28/16.
    */
    public class BaseApp extends AppCompatActivity{
    Deps deps;

    @OverRide
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    File cacheFile = new File(getCacheDir(), "responses");

deps = DaggerDeps.builder().networkModule(new NetworkModule(cacheFile)).build();

}

public Deps getDeps() {
    return deps;
}

}

How to resolve DaggerDeps ?

@nrohmen
Copy link
Owner

nrohmen commented Nov 2, 2016

just clean and rebuild your project

@herisulistiyanto
Copy link

herisulistiyanto commented Dec 5, 2016

@hafsalrahman
DaggerDeps is generated from Deps . . . it will generated when you build the project, since Deps is dagger component (have annotation @component). . . .

let say you create component interface MyComponent, then you will have generated like DaggerMyComponent . . .

CMIIW

@fushen0
Copy link

fushen0 commented Dec 1, 2017

Why didn't generated DaggerDeps? I followed yours steps and code , just didn't work.

@knightcube
Copy link

File->Other Settings->Default Settings->Build,Execution,Deployment->Compiler->Annotation Processors->Enable Annotation Processing->Apply->Ok
After this go to Build->Rebuild Project
This should solve your problem. If it doesn't ping me up using @knightcube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants