LoginSignup
4
4

More than 1 year has passed since last update.

【Flutter】apkビルド時に「Warning: Mapping new ns xx/common/02 to old ns xx/common/01」が表示される

Last updated at Posted at 2021-08-07

はじめに

Flutterでapkビルド時に以下のWarningが出てうざい

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

更新履歴

2021.8.7 初回投稿
2022.2.10 環境変更、手順一部修正

環境

  • Flutter (Channel stable, 2.10.0, on macOS 11.6 20G165 darwin-x64, locale ja-JP)
  • Android toolchain - develop for Android devices (Android SDK version 31.0.0)
  • Xcode - develop for iOS and macOS (Xcode 13.2.1)
  • Chrome - develop for the web
  • Android Studio (version 2021.1)
  • VS Code (version 1.64.0)

参考にしたサイト

手順

上記のブログの手順で通りやって解消した
0.AndroidStudioでFlutterプロジェクト内のandroidフォルダを開く
1.Project Structure 起動
  AndroidStudio Bumblebee | 2021.1.1(Mac版)では歯車アイコンをクリックすると表示される。
スクリーンショット 2022-02-10 10.08.56.png 
2.Module タブ選択
3.Build Tools Version 31.0.0 → 30.0.* に変更
4.Default Config タブに移動
5.Target SDK Version 31 → 30 に変更
6.OK をクリックして設定変更完了

以上

4
4
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
4
4