问题
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