Using an emulator with API 36, inside Android Studio I noticed that a floating button appeared every time I clicked inside a text field. Click the floating button and go to settings. Inside you have to enable the on-screen keyboard and disable the Stylus (pen) configuration.