実現したいこと
エラーを無くしたい
前提
flutter初心者です。
https://zenn.dev/mamushi/articles/flutter_ads_in_listview
https://prody03.com/flutter_admob_banner/
↑のサイトを見ながらandroidstudioでadmob広告を実装しようとしたのですが、シュミレーターを起動しようとするとエラーが出てきてしまいます。
解決方法を教えて欲しいです。
発生している問題・エラーメッセージ
/Users/key/Desktop/saigo/build/google_mobile_ads/intermediates/merged_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16 Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 19, or use tools:overrideLibrary="io.flutter.plugins.googlemobileads" to force usage (may lead to runtime failures) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:google_mobile_ads] /Users/key/Desktop/saigo/build/google_mobile_ads/intermediates/merged_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16 Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 19, or use tools:overrideLibrary="io.flutter.plugins.googlemobileads" to force usage (may lead to runtime failures) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 28s ┌─ Flutter Fix ─────────────────────────────────────────────────────────────────────────────────┐ │ The plugin google_mobile_ads requires a higher Android SDK version. │ │ Fix this issue by adding the following to the file │ │ /Users/key/Desktop/saigo/android/app/build.gradle: │ │ android { │ │ defaultConfig { │ │ minSdkVersion 19 │ │ } │ │ } │ │ │ │ Following this change, your app will not be available to users running Android SDKs below 19. │ │ Consider searching for a version of this plugin that supports these lower versions of the │ │ Android SDK instead. │ │ For more information, see: │ │ https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration │ └───────────────────────────────────────────────────────────────────────────────────────────────┘ Exception: Gradle task assembleDebug failed with exit code 1
該当のソースコード
ソースコード
試したこと
時間を経ってからもう一回した。
https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration
↑を見た
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2023/06/19 07:12
2023/06/19 08:01
2023/06/23 13:38