https://kotlinlang.org logo
#dagger
Title
# dagger
k

kingsley.gomes

03/15/2019, 3:21 PM
Hi, I'm trying to import and use an aar(which contains Operations.kt) into a project. The aar uses Dagger2 for its dependencies. When i try to inject it in the project i get the following error. Any help would be highly appreciated
Copy code
e: error: compiler message file broken: key=compiler.err.Processor: org.jetbrains.kotlin.kapt3.base.ProcessorWrapper@16547060 arguments={0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}
e: error: cannot access Operations
  class file for com.Operations not found
  Consult the following stack trace for details.
  com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.Operations not found
:app:kaptDebugKotlin FAILED
h

hmole

03/15/2019, 3:45 PM
Try making dependency on the lib
api
and see if it works
k

kingsley.gomes

03/15/2019, 3:58 PM
@hmole it doesn't work
h

hmole

03/15/2019, 3:59 PM
You import this aar in application or library module?
k

kingsley.gomes

03/15/2019, 6:14 PM
I'm importing it into a module of an application
h

hmole

03/15/2019, 6:47 PM
That's weird then. Usually your error happens when transitive dependency isn't in the
compile
configuration
3 Views