Unable to start service - Requires ACCESS_MOCK_LOCATION secure setting

后端 未结 1 1962
礼貌的吻别
礼貌的吻别 2021-02-14 03:24

I got an exception

java.lang.RuntimeException: Unable to start service ...
java.lang.SecurityException: Requires ACCESS_MOCK_LOCATION secure setting


        
相关标签:
1条回答
  • 2021-02-14 03:48

    The permission needs to be outside the <application> element.

    Also, you will need to enable Mock Locations from Settings -> Applications -> Development (Nexus S, may vary on other devices).

    Reference

    0 讨论(0)
提交回复
热议问题