app功能接口正常,其他手機運行OK,但是在Android9.0的手機上報錯
CLEARTEXT communication to 192.168.1.xx not permitted by network security policy'
無法加載數據
原因是因為android9.0開始必須https,和iOS10一樣的規定。
解決辦法如下,在manifest.xml的application節點下:
android:usesCleartextTraffic="true"
app功能接口正常,其他手機運行OK,但是在Android9.0的手機上報錯
CLEARTEXT communication to 192.168.1.xx not permitted by network security policy'
無法加載數據
原因是因為android9.0開始必須https,和iOS10一樣的規定。
解決辦法如下,在manifest.xml的application節點下:
android:usesCleartextTraffic="true"
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。