Android开发遇到的一些小问题

1、文件下载时,默认只能用https,怎么用http协议:

在Manifest.xml文件中增加一个配置项:

android:usesCleartextTraffic="true"

2、debug包使用adb命令不能安装的解决方案(之一):

在gradle.properties文件中增加配置项:

android:usesCleartextTraffic="true"

猜你喜欢

转载自www.cnblogs.com/oliverreal/p/11924881.html