android-error
只为记录
只为记录
展开
-
java.net.UnknownServiceException: CLEARTEXT...
背景: 还是在调用远程接口,进行网络通信的时候,报了如下错误:W/System.err: java.net.UnknownServiceException: CLEARTEXTcommunication to xxx.xxx.xxx not permitted by network security policy原因:为保证用户数据和设备的安全,Google针对下一代 Android...转载 2020-04-15 09:29:33 · 242 阅读 · 0 评论 -
android studio引用module出的错:ERROR: Unable to resolve dependency for ':app@debug/compileClasspath'
解决方案1模块的support版本高于主项目的support版本把其他模块的support版本改为一致即可解决方案2引用的moduleapply plugin: ‘com.android.library’//这里引用的是library,而不是application//这里注意还要把applicationId删除掉apply plugin: 'com.android.libr...原创 2019-11-08 13:45:22 · 354 阅读 · 0 评论 -
popupWindow,Attempted to finish an input event but the input event receiver has already been dispose
记录一下异常:popupWindow,Attempted to finish an input event but the input event receiver has already been dispose自定义PopuWindow遇到问题,再连续点击2此的时候,再第二此点击时失效,直接关闭PopuWindow,再百度PopuWindow的时候发现//这句代码让popupWindow...原创 2018-10-27 09:37:28 · 9380 阅读 · 0 评论 -
Can't process attribute android:fillColor="@color/camera_progress_delete": references to other resou
解决方法在defaultConfig中添加vectorDrawables.useSupportLibrary = truedefaultConfig {vectorDrawables.useSupportLibrary = true}原创 2019-07-29 16:49:27 · 327 阅读 · 0 评论 -
android.os.FileUriExposedException: file:///storage/emulated/0/photo.jpeg exposed beyond app through
android.os.FileUriExposedException: file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri()这是7.0权限调用的问题,在 Application中添加 // android 7.0系统解决拍照的问题 StrictMode...原创 2019-06-17 09:32:01 · 3154 阅读 · 3 评论 -
android 7.0系统解决拍照的问题
android 7.0系统解决拍照的问题android.os.FileUriExposedException: file:///storage/emulated/0/textphoto.jpg exposed beyond app through ClipData.Item.getUri()在oncreate()方法中添加一下代码 StrictMode.VmPolicy.Bui...原创 2019-09-27 14:44:04 · 219 阅读 · 0 评论