https://kotlinlang.org logo
#android
Title
# android
t

tseisel

01/13/2020, 10:37 AM
Does anyone here have had this problem with
kapt
and
Dagger
in multi-module projects ?
Copy code
> Task :app:kaptDebugKotlin FAILED
e: error: cannot access HttpClientEngine
  class file for io.ktor.client.engine.HttpClientEngine not found
  Consult the following stack trace for details.
  com.sun.tools.javac.code.Symbol$CompletionFailure: class file for io.ktor.client.engine.HttpClientEngine not found
It seems to occur because a dependency (Ktor-client in this case) is defined as
implementation
in a different Gradle module (feature) than the one the component is created (app).
a

Adam Grzybkowski

01/13/2020, 2:27 PM
try adding ktor client as compileOnly dependecy to the app module
7 Views