本文固定连接,转发请先评论

这个问题,第一是添加权限,在AndroidManifest.xml中添加权限:
Caused by: java.lang.SecurityException: com.example.geofences from uid 10049 not allowed to perform

如果这个权限添加有问题,可以在android studio中修改对应的报错等级。如图:
Caused by: java.lang.SecurityException: com.example.geofences from uid 10049 not allowed to perform
然后就可以看到没有报错了,如图:
Caused by: java.lang.SecurityException: com.example.geofences from uid 10049 not allowed to perform
第二部是需要在设置中设定这个应用调试gps。这样才行。

Caused by: java.lang.SecurityException: com.example.geofences from uid 10049 not allowed to perform
这样就行了。

相关文章: