状況

npx expo run:androidを実行した際に自動で起動するAndroidエミュレータ端末では問題なく動作する。しかし、その後にShift+aを押して別の端末を選ぶと、次のエラーが発生し、アプリが動作しなかった。
√ Select a device/emulator » Pixel_Tablet_API_35 (emulator)
› Opening emulator Pixel_Tablet_API_35
CommandError: No development build (com.name.XXXXXXXXXX) for this project is installed. Please make and install a development build on the device first.
Learn more: https://docs.expo.dev/development/build/解決策

まず、すべてのエミュレータを一度終了し、起動したいエミュレータを起動する。たとえば、起動したいエミュレータがPixel_Tablet_API_35である場合、以下のコマンドを実行する。
emulator -avd Pixel_Tablet_API_35エミュレータが完全に起動したら、以下のコマンドを実行して、エミュレータに直接インストールする。
npx expo run:android --deviceデバイス選択のプロンプトが表示されたら、起動したいエミュレータ(e.g. Pixel_Tablet_API_35)を選択する。
これでアプリが動作するようになった。