I wasn't getting anywhere no matter what I tried off the suggestions above. Then I upgraded to the latest Android Studio (Narwhal 2025) and the problem went away.