usesCleartextTraffic not permitted

旧时模样 提交于 2019-12-03 21:41:55

问题


I use to send build to codenameone for year, but suddenly all the newly android build apps is not working with http protocol, getting "java.io.IOException: Cleartext HTTP traffic to domainname.com not permitted."

I search through google but not finding any solutions about android for codenameone.

I understand apple had force this to https, but not android.

Can somebody help here?

Try to play around the codenameone setting page for this project to add a build hint

android.xapplication=<application android:usesCleartextTraffic="true" />

But not working as well.


回答1:


We migrated to API level 28 over the weekend as required by Google. This broke compatibility on some fronts as is typical to them... That's one such front.

What you're looking for is android.xapplication_attr but the argument isn't correct either:

android.xapplication_attr=android:usesCleartextTraffic="true"


来源:https://stackoverflow.com/questions/57121953/usescleartexttraffic-not-permitted

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!