Unfortunately app has stopped in Android Emulator

前端 未结 4 1706
悲哀的现实
悲哀的现实 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:15

    I had the same error message and found that, in commenting out uses-permission nodes in AndroidManifest.xml I had commented out one that was needed. When I put it back in the app ran fine. I was able to reproduce the error. I needed:

    This was for a barebones index.html, single page app, that displays Hello World. And the permission above was the only one I needed to do Run As/ Android Application and get it to run in an emulator.

    HTH

提交回复
热议问题