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?

This app was built for an older version of android. It might not work properly and doesn't include the ..の解消法

Posted at

エラーというか警告本文

特定の端末で以下のメッセージが現れました。

スクリーンショット 2025-01-21 23.27.48.png

一応、OKをすれば動作はすr、、、解消したい。

環境

  • Android Studio Jellyfish | 2023.3.1 Patch 2
  • Flutter 3.24.4

この警告が出る原因

ndroid Gradle Plugin(AGP)バージョン7.0.0以上でcompileSdkVersionなどがdeprecatedになったため

解消法

  • android/app/build.gradle
android {
-    compileSdkVersion 31
-    defaultConfig {
-      targetSdkVersion 31
-   }
+   compileSdk = 31
+   defaultConfig {
+      targetSdk = 31
+   }
}

再度Buildをすると消えました!

参考

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?