bluetooth - Android BLE官方例程运行报错(android6.0.1)
PHP中文网
PHP中文网 2017-04-18 09:20:28
0
1
602

运行报错截图

androidmanifast.xml权限部分

手机上权限截图

不知道为什么没有权限

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
伊谢尔伦

The permission mechanism has been changed since Android 6.0. Some permissions have to be re-applied in the activity after registering in the manifest. ACCESS_FIND_LOCATION is a dangerous permission and needs to be applied dynamically in the activity. Solution 1: Change your compiled version to below 23 , 2: Apply for ACCESS_FIND_LOCATION permission in the activity.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template