瀏覽代碼

Explicitly opt in to clearTextTraffic

According to docs, cleartext support is disabled by starting with Android 9.

Ref: https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted
estasney 2 年之前
父節點
當前提交
7eb382596e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/AndroidManifest.xml

+ 1 - 0
app/src/main/AndroidManifest.xml

@@ -8,6 +8,7 @@
     <uses-permission android:name="android.permission.INTERNET" />
 
     <application
+        android:usesCleartextTraffic="true"
         android:allowBackup="false"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"