Unity minimized the game by android's back button when build project with gradle

i got this error:
trouble writing output: Too many field references to fit in one dex file: 93024; max is 65536.

and now i have to build it with gradle.
before that, i set the game that when back button pressed, game change it mode to pause mode.
when i built with Build system internal, everything works great.
but when i build with gradle, when press back button, my game chage to pause mode and minimized too…
i don’t want to minimize my game anymore. any idea?

This behaviour should not depend on the build system that is used. This is likely caused by one of the new plugins you’ve added to your project. I’d suggest to create a new empty project and to add one-by-one plugins that you use. You should be able to find out which one of them causes this.