I just changed my VM device and switched to Android 14 (upsidedowncake) api level 34 and now it's working.