If you enable Proguard for the application module, that is, a module that includes others, everything will be confused.
To check this:
- create a new project
- add a new module, call it lib
- add code to lib, use this code in application
- enable Proguard for the application, not for lib
- in Android Studio:
- Assembly → Cleaning
- Build → Build apk
- Assembly → Analysis apk
, , lib .