If anyone wants to debug release build using Android Studio, follow these steps:
- Set build variant to release mode.
-
Right click on app in left navigation pane, click Open Module Settings.
-
Go to Signing Tab. Add a signing config and fill in information. Select your keychain as well.
- Go to Build Type tab. Select release mode and set:
-Debuggable to true.
-Signing Config to the config. (The one you just created).
Sync your gradle. Enjoy!