Skip to content

Android 15 Compatibility Issues with Deprecated APIs #1003

@alexaungmyooo

Description

@alexaungmyooo

Describe the bug

When targeting Android 15 (SDK 35), the plugin triggers warnings about deprecated APIs related to status bar color management (Window.setStatusBarColor) and requires 16KB native library alignment. The warnings appear in Google Play Console and may affect app compatibility.

Error Messages

  1. Edge-to-edge may not display for all users (related to window insets)
  2. Your app uses deprecated APIs or parameters for edge-to-edge (specifically android.view.Window.setStatusBarColor)
    Location: y5.c.onCreate
  3. Recompile your app with 16 KB native library alignment

To Reproduce

Steps to reproduce the behavior:

  1. Create new Flutter project with flutter_downloader: ^1.12.0
  2. Set compileSdkVersion and targetSdkVersion to 34
  3. Build release APK/AAB
  4. Submit to Google Play Console

Expected behavior

The plugin should:

  • Use modern WindowCompat APIs instead of deprecated Window methods
  • Support edge-to-edge displays properly
  • Provide properly aligned native libraries for 16KB pages

Device information:

[✓] Flutter (Channel stable, 3.32.8, on macOS 15.6 24G84 darwin-x64, locale en-GB) [822ms]
• Flutter version 3.32.8 on channel stable at /Users/aungmyooo/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision edada7c56e (13 days ago), 2025-07-25 14:08:03 +0000
• Engine revision ef0cd00091
• Dart version 3.8.1
• DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3.2s]
• Android SDK at /Users/aungmyooo/Library/Android/sdk
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [2.0s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16F6
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [31ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2025.1) [30ms]
• Android Studio at /Applications/Android Studio.app/Contents
• 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 21.0.6+-13391695-b895.109)

[✓] VS Code (version 1.102.3) [28ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.116.0

[✓] Connected device (5 available) [8.1s]
• SM N975F (mobile) • RF8M82Y3K9A • android-arm64 • Android 12 (API 31)
• sdk gphone16k x86 64 (mobile) • emulator-5554 • android-x64 • Android 16 (API 36) (emulator)
• Aung Myo’s iPhone (wireless) (mobile) • 00008120-0006612E0198A01E • ios • iOS 18.4.1 22E252
• macOS (desktop) • macos • darwin-x64 • macOS 15.6 24G84 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 138.0.7204.184

[✓] Network resources [1,524ms]
• All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions