In the latest Android Studio version (Meerkat Feat...
# getting-started
y
In the latest Android Studio version (Meerkat Feature Drop 2024.3), I wrote a Dice Roller program following the online tutorial, but when running it on a virtual simulation device, there was no response when clicking a button with the mouse. Then when I connected to my Android phone, I was able to interact normally by pressing buttons. So, may I ask, is there something set incorrectly? I tried simulating a switch on the device called 'Hardware Input', but it didn't work.
g
It doesn't look related to Kotlin. It looks that you do not handle events correctly, also check this article if you do custom rendering https://developer.android.com/guide/topics/ui/accessibility/custom-views
r
Is this on Mac? I've had this problem with emulators for a long time and never figured it out. I normally use scrcpy when I need to interact, which isn't very elegant but does work 🤷
y
On windows11🤣