Unfortunately app has stopped in Android Emulator

前端 未结 4 1668
悲哀的现实
悲哀的现实 2021-02-19 05:57

I am new to Android and I am trying a few small apps (like Compass). When I run the app in the emulator, it gives the message Unfortunately, Compass has Stopped.

4条回答
  •  梦谈多话
    2021-02-19 06:34

    It probably due to the fact that you don't have accelerometer and magnetic field support. Go to your AVD configuration and add the following hardware: Magnetic Field Support and accelerometer

提交回复
热议问题