I use Dagger 2 and Kotlin for Android development. My project is also a multi-module project. My settings.gradle file looks like this:
include :app
include :lib
I also support the lib module.
In Dagger Files (for example, in a component) I am trying to get an item from another module. For example:
@Component
interface AppComponent{
fun getPresenter() : Presenter
}
The Presenter object is defined in the lib module. I worked in a Linux environment and I use Android Studio 3 Preview Canary 5. The code works well and I can generate an APK.
But my company wanted to create an APK using a stable version of Android Studio. I am using Android Studio 2.3.3.
When compiling Android Project, I encountered this error:
error: error.NonExistentClass
The error appears when
:app:kaptDebugKotlin
, , . ? .