Given component holder class android.support.multidex.MultiDexApplication does not implement interface dagger.hilt.internal.GeneratedComponent

Engin Atalay 1 Reputation point
2021-07-26T05:29:13.81+00:00

Hi, i'm creating Xamarin DLL from "Kotlin AAR" or "Kotlin Libraries".

Then AAR to DLL Converted Successfully.

There are dagger and hilt libraries (aar/jar) to DLL Converted Successfully.

  • dagger-2.37.jar
  • hilt-core-2.37.jar
  • hilt-android-2.37.aar
  • dagger-lint-aar-2.37.aar

On Xamarin.Android App Side

  • Added Kotliin DLL
  • Added Dagger/Hilt Library DLL
  • Added Xamarin.Kotlin.StdLib and related libs from nuget package manager.
  • Enabled MultiDexApplication

During testing, create an instance "Kotlin Class (With Converted DLL)", then Xamarin.Android app throws an exception.

Exception Message Java.Lang.IllegalStateException: Given component holder class android.support.multidex.MultiDexApplication does not implement interface dagger.hilt.internal.GeneratedComponent or interface dagger.hilt.internal.GeneratedComponentManager.

Please help to me.
What it this message?
How to solve?

117777-g9f5c.png

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,354 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.