Hi, I'm trying to import and use an aar(which cont...
# dagger
k
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
Try making dependency on the lib
api
and see if it works
k
@hmole it doesn't work
h
You import this aar in application or library module?
k
I'm importing it into a module of an application
h
That's weird then. Usually your error happens when transitive dependency isn't in the
compile
configuration