Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.
来源:互联网 发布:广州天拓网络 编辑:程序博客网 时间:2024/05/15 07:56
01-10 08:26:15.694: W/CropActivity(11674): lsn cannot write e= java.lang.SecurityException: External path: /storage/sdcard1/_19700110_082615.JPG: Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.01-10 08:26:15.702: W/CropActivity(11674): cannot write file: content://media/external/images/media/5956
看到这样的log估计大部分人员都会不假思索的跑去AndroidManifest.xml文件中加上下面这句。
<uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
跑进去结果发现没有用,网上很多种方法都试了也没有用。
后面是重复的实验了之后,发现,其实是改了没有起效啊,遇到这种情况先看看Android.mk文件中有没有签名:
LOCAL_CERTIFICATE := platform
没有请加上。
然后利用签名文件signapk.jar将应用push进相应文件中。成功生效。
另外一种方式就是在AndroidManifest.xml文件中添加如下一句,
android:sharedUserId="android.uid.system"
添加系统级应用权限后要添加一下这句,将应用定为系统级的应用。
看你有什么样的环境两种方式自行选择,问题解决。
阅读全文
0 0
- Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.
- Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.
- No permission to write APN settings: Neither user 10047 nor current process has android.permission.W
- Exception | neither user 10075 nor current process has android.permission.ACCESS_NETWORK_STATE..
- Neither user 10010 nor current process has android.permission.MANAGE_NETWORK问题
- SecurityException: Neither nor current process has android.permission.INSTALL_PACKAGES
- java.lang.SecurityException: Neither user 10039 nor current process has android.permissio
- java.lang.SecurityException: ConnectivityService: Neither user 10086 nor current process has android
- 【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
- Caused by: java.lang.SecurityException: Neither user 10068 nor current process has android.permissio
- android 自定义接听电话时报错:java.lang.SecurityException: Neither user 10088 nor current process has android.p
- java.lang.SecurityException: Need BLUETOOTH ADMIN permission: Neither user 10047 nor current process
- 【Android学习】java.lang.SecurityException: ConnectivityService: Neither user 10134 nor current process
- nor current process has android.permission.WRITE_APN_SETTINGS Proxy andriod,代理上网,wap网络请求问题
- nor current process has android.permission.WRITE_APN_SETTINGS Proxy andriod,代理上网,wap网络请求有关问题
- nor current process has android.permission.WRITE_APN_SETTINGS Proxy andriod,代理上网,wap网络请求问题(柯昌合)
- Android开发在Eclipse提示信息This element neither has attached source nor attached Javadoc
- bootstap 3.x+springMVC 发生图标不出来,样式还有
- Windows Server 2008 R2安装IIS
- javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name解决
- 暑期C++03 之匿名对象
- H5微信聊天案例、html5+css3仿微信聊天界面对话框 微信红包-打赏-霸屏
- Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.
- 使用Kotlin开发Android应用
- 回溯法——旅行商(TSP)问题
- 理解ARP协议以及IP与MAC地址的关系
- The Solution to Leetcode 463 Island Perimeter
- bzoj 3101: N皇后
- GC学习笔记
- selenium自动化测试web
- #421 Div.2 B. Mister B and Angle in Polygon——几何数学