码迷,mamicode.com
首页 > 移动开发 > 详细

android权限问题

时间:2015-10-10 15:16:21      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:

10-10 02:43:18.287      720-811/? W/AudioTrack﹕ AUDIO_OUTPUT_FLAG_FAST denied by client
10-10 02:43:18.293    4464-4493/? W/System.err﹕ java.net.SocketException: socket failed: EACCES (Permission denied)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at libcore.io.IoBridge.socket(IoBridge.java:623)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at java.net.PlainSocketImpl.create(PlainSocketImpl.java:198)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at java.net.Socket.checkOpenAndCreate(Socket.java:687)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at java.net.Socket.setSoTimeout(Socket.java:541)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at com.android.okhttp.Connection.connect(Connection.java:147)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:373)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:323)
10-10 02:43:18.293    4464-4493/? W/System.err﹕ at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:491)
10-10 02:43:18.294    4464-4493/? W/System.err﹕ at jukay.com.showhtml.MainActivity$DownHtml.run(MainActivity.java:71)
10-10 02:43:18.295    4464-4493/? W/System.err﹕ Caused by: android.system.ErrnoException: socket failed: EACCES (Permission denied)
10-10 02:43:18.295    4464-4493/? W/System.err﹕ at libcore.io.Posix.socket(Native Method)
10-10 02:43:18.297    4464-4493/? W/System.err﹕ at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:282)
10-10 02:43:18.297    4464-4493/? W/System.err﹕ at libcore.io.IoBridge.socket(IoBridge.java:608)

出现这种问题,我搞了老半天,google了一整天,群里的网友也不知道是咋回事,都说是网络权限没有配置。可我明明配置了权限啊,难道是全是配置没有生效,终于在最后,我发现了问题,配置权限不能大写,但是你大写了他也不会报错,只是配置不生效,开发的时候要注意,这种问题很让人恼火的。

技术分享

android权限问题

标签:

原文地址:http://www.cnblogs.com/shuimojun/p/4866865.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!