None of the other answers solved the issue. The build and install was going fine when it's triggered from android studio with a device connected to the computer or with an emulator, the only issue was when sending the apk via email or hockey app.
How I could fix it (and this might not be the solution for everybody), I enabled the multidex support by adding this to the default config:
// Enabling multidex support.
multiDexEnabled true
PS: Usually Android Studio build would fail if the multidex support has to be enabled, in this new version this didn't happen, but my Jenkins build was broken and this is how I could solve it.