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

Unable to build different modules #238

Closed
gaurav-mishra8 opened this issue Apr 17, 2017 · 3 comments
Closed

Unable to build different modules #238

gaurav-mishra8 opened this issue Apr 17, 2017 · 3 comments

Comments

@gaurav-mishra8
Copy link

Sorry it might seem a basic mistake , but i am unable to build modules other than sample app.

While building sample-mail or sample-mvi I get error in the generated files:

Error:(18, 53) error: cannot find symbol class DetailsFragmentBuilder
Error:(20, 51) error: cannot find symbol class MailsFragmentBuilder

Error:(42, 70) error: cannot find symbol class MailsAdapterBinder
/home/gaurav/AndroidStudioProjects/mosby/sample-mail/src/main/java/com/hannesdorfmann/mosby3/sample/mail/mails/MailsAdapter.java

Kindly suggest

@sockeqwe
Copy link
Owner

sockeqwe commented Apr 17, 2017 via email

@gaurav-mishra8
Copy link
Author

gaurav-mishra8 commented Apr 17, 2017

Well the error was in building module sample-mail only. Below is the stack trace

`Caused by: java.lang.NoSuchFieldError: MAP
at dagger.internal.codegen.ProvidesMethodValidator.validate(ProvidesMethodValidator.java:115)
at dagger.internal.codegen.ModuleProcessingStep.process(ModuleProcessingStep.java:79)
at dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:228)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
at com.sun.tools.javac.main.Main.compile(Main.java:523)
... 103 more

`
Seems like some dagger2 issue.
Got it fixed by updating Dagger2 version to latest : 2.10 .Not quite sure about the reason for this error.
Thanks it is fixed now . You can close this issue

@erikdewit87
Copy link

I encountered this as well. Got stuck for a while because my mind processed the stacktrace as the same and I stopped reading.. Just happens that the most valuable info is stated in the code block right after the stacktace:

Seems like some dagger2 issue.
Got it fixed by updating Dagger2 version to latest : 2.10 .Not quite sure about the reason for this error.

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

3 participants