关于7.0手机爱贝支付转圈问题-java.lang.SecurityException: getSubscriberId: Neither user 10191 nor current process
2018-01-10 09:25
3019 查看
最近测试发现爱贝渠道的包在支付的时候一直“转圈”,没有弹出支付界面。
看log发现是:
java.lang.SecurityException: getSubscriberId: Neither user 10191 nor current process has android.permission.READ_PHONE_STATE.
百度了一下,说是6.0+的安卓版本,如果你没有给项目加上动态权限请求的话,你的应用在安装到手机的时候将不会获取任何权限!!!
检查了下发包项目,targetSdkVersion=23,我们的项目目前是不需要这么搞得sdk版本,改成19之后发包,这个异常随之而去~
若是targetSdkVersion>23那么就需要动态申请权限了
看log发现是:
java.lang.SecurityException: getSubscriberId: Neither user 10191 nor current process has android.permission.READ_PHONE_STATE.
百度了一下,说是6.0+的安卓版本,如果你没有给项目加上动态权限请求的话,你的应用在安装到手机的时候将不会获取任何权限!!!
检查了下发包项目,targetSdkVersion=23,我们的项目目前是不需要这么搞得sdk版本,改成19之后发包,这个异常随之而去~
若是targetSdkVersion>23那么就需要动态申请权限了
相关文章推荐
- 【Android】java.lang.SecurityException: getDeviceId: Neither user 10065 nor current process has android.permission.READ_PHONE_STATE
- 【Android】java.lang.SecurityException: getDeviceId: Neither user xxxxx nor current process has androi
- 【Android】java.lang.SecurityException: getDeviceId: Neither user xxxxx nor current process has andro
- Android异常:唤醒锁未授权。(Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK.)
- java.lang.SecurityException: ConnectivityService: Neither user 10086 nor current process has android
- Caused by: java.lang.SecurityException: Neither user 10068 nor current process has android.permissio
- java.lang.SecurityException: Neither user 10039 nor current process has android.permissio
- Android 开发之错误整理java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10088 nor current process has android.permission.READ_PHONE_STATE.
- android 自定义接听电话时报错:java.lang.SecurityException: Neither user 10088 nor current process has android.p
- 【Android学习】java.lang.SecurityException: ConnectivityService: Neither user 10134 nor current process
- java.lang.SecurityException: Need BLUETOOTH ADMIN permission: Neither user 10047 nor current process
- SecurityException: Neither nor current process has android.permission.INSTALL_PACKAGES
- java.lang.SecurityException: WifiService: Neither user 错误
- java.lang.SecurityException: WifiService: Neither user 1...
- 关于note2等(Android4.1版本)以上无法启动支付宝的问题"java.security.spec.InvalidKeySpecException"
- 调试虚拟机[置顶] 关于AndroidRuntime: FATAL EXCEPTION: GLThread 10 java.lang.IllegalArgumentException问题
- 关于note2等(Android4.1版本)以上无法启动支付宝的问题"java.security.spec.InvalidKeySpecException"
- 关于hibernate执行select count( *) 出现java.lang.ClassCastException问题
- 关于ActivityManager: java.lang.SecurityException: Permission Denial错误
- 关于字符串数组赋值的问题--java.lang.NullPointerException异常