googleads / googleads-mobile-flutter

A Flutter plugin for the Google Mobile Ads SDK
Apache License 2.0
344 stars 285 forks source link

version 241806999.240304000.1 of the SDK is out of date #1149

Closed abhinavsinghring closed 3 months ago

abhinavsinghring commented 3 months ago

[REQUIRED] Step 1: Describe your environment

Plugin Version

google_mobile_ads: ^5.1.0

[REQUIRED] Step 2: Describe the problem

I'm getting this in my debug console, I/Ads (14636): Received log message: <Google:HTML> You are currently using version 241806999.240304000.1 of the SDK, which is out of date. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be installed from https://googlemobileadssdk.page.link/android-install-instructions. More information about the SDK deprecation schedule is available at https://developers.google.com/admob/android/deprecation. W/AudioManager(14636): Use of stream types is deprecated for operations other than volume control.

[✓] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.3880], locale en-IN)
    • Flutter version 3.22.2 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (8 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\abhin\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop Windows apps
    ✗ Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[!] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[✓] VS Code (version 1.91.1)
    • VS Code at C:\Users\abhin\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.92.0

[✓] Connected device (4 available)
    • RMX3092 (mobile)  • W4PJMRTWKJUCRCBQ • android-arm64  • Android 12 (API 31)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows
    • Chrome (web)      • chrome           • web-javascript • Google Chrome
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.
malandr2 commented 3 months ago

Hi @abhinavsinghring, this one is interesting as 5.1.0 uses a non-deprecated version of the Android SDK (23.0.0) - can you confirm what Android SDK version you are running? And can you also provide steps to reproduce?

abhinavsinghring commented 3 months ago

Hi @malandr2, I have encountered this while running on SdkVersion 31. While my app's minsdkVersion is 23 and targetSdkVersion is 34

This log message didn't appear before yesterday and when I was using google_mobile_ads: ^4.0.0. I thought maybe updating the package would fix this but after updating I'm still seeing it whenever the ad loads.

And I don't exactly know how to reproduce this as it comes from nowhere.

malandr2 commented 3 months ago

Hi @abhinavsinghring, I confirmed with the Android engineering team this log fire for all users if you're not on the latest Android SDK version. The Flutter plugin is currently running on 23.0.0 while the most up to date is 23.2.0. Every Flutter release pulls in the latest version of the Android/iOS SDKs at the time of the release.

The Flutter plugin's next release (expected next month) will use Android SDK >= 23.2.0

If you need to reference the latest SDK in the meantime it is possible, though not recommended, to add the latest dependency in the Android layer