0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Flutter】api通信がAndroidでのみうまくいかない件

Last updated at Posted at 2022-02-24

何があったのか?

GitHubApiを使用した通信処理がAndroidでのみ失敗して詰まったので、備忘録を残しておく。

解決法

AndroidManifest.xmlにネットワーク権限を追加

以下のようにandroid / src / main /AndroidManifest.xmlに<uses-permission>の記述を加えるとネットワーク権限が加えられ、api通信もできるようになります。

<manifest xmlns:android...>
 ...
 <uses-permission android:name="android.permission.INTERNET" />
 <application ...
</manifest>

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?