Skip to content

Commit

Permalink
fix(Android): 虚拟机不能使用http请求(#151) (#162)
Browse files Browse the repository at this point in the history
* 升级依赖版本

* fix: android 虚拟机不能使用http请求(#151)
  • Loading branch information
cuilanxin committed Sep 16, 2021
1 parent e03e5f6 commit 4c65d6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion HelloWorld/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
Expand Down
4 changes: 3 additions & 1 deletion template/template/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
Expand Down

0 comments on commit 4c65d6a

Please sign in to comment.