使用明文流量不允许
usesCleartextTraffic not permitted
我曾经将构建发送到 codenameone 一年,但突然间所有新 android 构建的应用程序都无法使用 http 协议,得到 "java.io.IOException: Cleartext HTTP traffic to domainname.com not permitted."
我搜索了 google 但没有找到关于 android 代号 one 的任何解决方案。
我知道 apple 强制将此设置为 https,但不是 android。
有人可以帮忙吗?
尝试在这个项目的 codenameone 设置页面中添加构建提示
android.xapplication=<application android:usesCleartextTraffic="true" />
但效果不佳。
我们根据 Google 的要求在周末迁移到了 API 级别 28。这在某些方面破坏了兼容性,这对他们来说是典型的……就是这样一个方面。
您要查找的是android.xapplication_attr
,但参数也不正确:
android.xapplication_attr=android:usesCleartextTraffic="true"
我曾经将构建发送到 codenameone 一年,但突然间所有新 android 构建的应用程序都无法使用 http 协议,得到 "java.io.IOException: Cleartext HTTP traffic to domainname.com not permitted."
我搜索了 google 但没有找到关于 android 代号 one 的任何解决方案。
我知道 apple 强制将此设置为 https,但不是 android。
有人可以帮忙吗?
尝试在这个项目的 codenameone 设置页面中添加构建提示
android.xapplication=<application android:usesCleartextTraffic="true" />
但效果不佳。
我们根据 Google 的要求在周末迁移到了 API 级别 28。这在某些方面破坏了兼容性,这对他们来说是典型的……就是这样一个方面。
您要查找的是android.xapplication_attr
,但参数也不正确:
android.xapplication_attr=android:usesCleartextTraffic="true"