Unable to start service - Requires ACCESS_MOCK_LOCATION secure setting

后端 未结 1 948
再見小時候
再見小時候 2021-02-14 03:36

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:55

    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)
提交回复
热议问题