首页 > 移动平台 > 详细

Android异常:唤醒锁未授权。(Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK.)

时间:2016-05-30 14:33:20      阅读:1316      评论:0      收藏:0      [点我收藏+]

Android异常:Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK.

原因:未授权使用唤醒锁。

解决:在AndroidManifest.xml的<manifest>标签中加入:

    <uses-permission android:name="android.permission.WAKE_LOCK"/>

Android异常:唤醒锁未授权。(Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK.)

原文:http://www.cnblogs.com/godwithus/p/5542231.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!