Skip to content

Commit 4c65d6a

Browse files
authored
fix(Android): 虚拟机不能使用http请求(#151) (#162)
* 升级依赖版本 * fix: android 虚拟机不能使用http请求(#151)
1 parent e03e5f6 commit 4c65d6a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

HelloWorld/android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
android:icon="@mipmap/ic_launcher"
1010
android:roundIcon="@mipmap/ic_launcher_round"
1111
android:allowBackup="false"
12-
android:theme="@style/AppTheme">
12+
android:theme="@style/AppTheme"
13+
android:usesCleartextTraffic="true"
14+
>
1315
<activity
1416
android:name=".MainActivity"
1517
android:label="@string/app_name"

template/template/android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
android:icon="@mipmap/ic_launcher"
1010
android:roundIcon="@mipmap/ic_launcher_round"
1111
android:allowBackup="false"
12-
android:theme="@style/AppTheme">
12+
android:theme="@style/AppTheme"
13+
android:usesCleartextTraffic="true"
14+
>
1315
<activity
1416
android:name=".MainActivity"
1517
android:label="@string/app_name"

0 commit comments

Comments
 (0)