Skip to content

[bug] Android Build Bug #1059

@Matkurban

Description

@Matkurban

run:flutter build apk

Execution failed for task ':livekit_client:checkReleaseAarMetadata'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
2 issues were found when checking AAR metadata:

   1.  Dependency 'androidx.core:core-ktx:1.18.0' requires libraries and applications that
       depend on it to compile against version 36 or later of the
       Android APIs.

       :livekit_client is currently compiled against android-34.

       Recommended action: Update this project to use a newer compileSdk
       of at least 36, for example 36.

       Note that updating a library or application's compileSdk (which
       allows newer APIs to be used) can be done separately from updating
       targetSdk (which opts the app in to new runtime behavior) and
       minSdk (which determines which devices the app can be installed
       on).

   2.  Dependency 'androidx.core:core:1.18.0' requires libraries and applications that
       depend on it to compile against version 36 or later of the
       Android APIs.

       :livekit_client is currently compiled against android-34.

       Recommended action: Update this project to use a newer compileSdk
       of at least 36, for example 36.

       Note that updating a library or application's compileSdk (which
       allows newer APIs to be used) can be done separately from updating
       targetSdk (which opts the app in to new runtime behavior) and
       minSdk (which determines which devices the app can be installed
       on).

[✓] Flutter (Channel stable, 3.41.7, on macOS 26.4.1 25E253 darwin-arm64, locale zh-Hans-CN) [1,648ms]
• Flutter version 3.41.7 on channel stable at /Users/kurban/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cc0734ac71 (5 days ago), 2026-04-15 21:21:08 -0700
• Engine revision 59aa584fdf
• Dart version 3.11.5
• DevTools version 2.54.2
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-swift-package-manager,
omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [2.8s]
• Android SDK at /Users/kurban/Library/Android/sdk
• Emulator version unknown
• Platform android-36, build-tools 36.0.0
• ANDROID_HOME = /Users/kurban/Library/Android/sdk
• 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.10+-117844308-b1163.108)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.4.1) [3.0s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17E202
• CocoaPods version 1.16.2

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

[✓] Connected device (4 available) [8.7s]
• V2055A (mobile) • 9583400760004TE • android-arm64 • Android 14 (API 34)
• kurban的iPhone (wireless) (mobile) • 00008030-000511383498802E • ios • iOS 26.4.1 23E254
• macOS (desktop) • macos • darwin-arm64 • macOS 26.4.1 25E253 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 147.0.7727.57

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

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions