【bug记录】getDeviceId: The user 10002 does not meet the requirements to access device identifiers.
生活随笔
收集整理的這篇文章主要介紹了
【bug记录】getDeviceId: The user 10002 does not meet the requirements to access device identifiers.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?
getDeviceId: The user 10002 does not meet the requirements to access device identifiers. ?com.hik.CASClient.CASClient.getHardwareCodeFromware(Native Method)
使用場景:程序運行在小米10系統android10,打開程序崩潰。
嘗試:修改targetSdkVersion改到29以下,但是不起作用。
發現問題:因為第三方控件中使用了getDevice()這樣的獲取imei的方法(我的項目是螢石云的版本導致)
解決辦法:將第三方控件的版本更新(前提是第三方控件已經對這個問題進行了修改)。如果是自己本地的代碼的話,也是同理,將獲取imei碼的部分改成獲取其他唯一碼即可。
總結
以上是生活随笔為你收集整理的【bug记录】getDeviceId: The user 10002 does not meet the requirements to access device identifiers.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 桌面小工具,网络时间表
- 下一篇: 录制视频显示的视频角度和拍摄角度保持一致