I need to create an android library that will also contains layout that uses data binding.
I've managed to get the library and the containing app works, but as soon as I try to enable obfuscation (minifyEnabled true
) I'm getting:
Cannot resolve type for {variable name}
This is reasonable because my variable type was changed during proguard processing.
I tried to make my resources private by declaring some of them public on the public.xml, but this doesn't help.
Can it be done in anyway?