Android开发中“CLEARTEXT communication not permitted”错误的解决方法 2024-5-26 14:17 | 17 | 0 | Android,开发,解决问题 127 字 | 2 分钟 起因 笔者在测试写好的图片上传类时发现无法上传的现象,logcat报“CLEARTEXT communication not permitted”错误,经过研究后发现这是因为Android默认不允许非HTTPS请求,特在此记录下来 解决方法 创建network_security_config.xml 在res/xml目录下创建network_sec… Androidpost开发报错