开发者社区 问答 正文

android权限报错问题?报错

报错信息如下:

 java.lang.SecurityException: getDeviceId: Neither user 10081 nor current process has android.permission.READ_PHONE_STATE.

对应的权限我在AndroidManifest.xml中加上或者删掉都报这个错误,虽不影响程序运行。但是我看着心里很不爽!我想知道这个究竟是为什么?

展开
收起
爱吃鱼的程序员 2020-06-09 10:53:42 589 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

     lintOptions{
         abortOnErrorfalse
       }

    天哪,我已经不做安卓了。:joy:
    2020-06-09 10:53:57
    赞同 展开评论