I have an Application class that I want to be different in each build variant like debug and release.
this is my map:
app/
|
|----debug/
|----java\
|----com.example.App.class
|----res\
|----mipmap-hdpi
|----main/
|----java\
|----com.example.App.class
|----res\
|----mipmap-hdpi
but in android studio give me this error message "duplicate class found in ..."
but it does not show any error in my resources.
my question is why gradle cannot figure it out what class should use in different build variant but it can decide what resource must be used in different build variants.