kotlinforandroid
08/06/2023, 10:31 AMApplication classes, one for main and one for debug sourceSet. However, hilt complains during compilation that I cannot have multiple app roots: Cannot process multiple app roots in the same compilation unit . How can I solve this issue?
I use a simple manifest to replace the class used:
<manifest xmlns:android="<http://schemas.android.com/apk/res/android>"
xmlns:tools="<http://schemas.android.com/tools>">
<application
tools:replace="android:name"
android:name=".DebugApplication"/>
</manifest>Hristijan
08/06/2023, 10:53 AMMasoud Karimi
08/07/2023, 4:16 PMdebug and release builds, you need to place your Application class within the respective debug and release source sets. When you move a class to a different source set, such as debug or release, it should no longer remain in the main source set.