Unable to start service - Requires ACCESS_MOCK_LOCATION secure setting

后端 未结 1 1961
礼貌的吻别
礼貌的吻别 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条回答
  •  -上瘾入骨i
    2021-02-14 03:48

    The permission needs to be outside the element.

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

    Reference

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