Skip to content

[Android] compileSdkVersion 33 fails current AndroidX AAR metadata checks #46

Description

@zakariaBoukernafa

Description

tenjin_plugin 1.4.0 hardcodes compileSdkVersion 33 in its Android library module. The bundled Tenjin Android SDK and its resolved AndroidX dependencies now require consumers to compile against Android API 34 or newer, so current Flutter Android release builds fail during AAR metadata validation even when the application itself compiles against API 36.

Error Message

Execution failed for task ':tenjin_plugin:checkReleaseAarMetadata'.
> 15 issues were found when checking AAR metadata:

Dependency 'androidx.fragment:fragment:1.7.1' requires libraries and applications
that depend on it to compile against version 34 or later of the Android APIs.

:tenjin_plugin is currently compiled against android-33.

The same requirement is reported for dependencies including androidx.lifecycle:lifecycle-runtime:2.7.0, androidx.lifecycle:lifecycle-process:2.7.0, and androidx.exifinterface:exifinterface:1.4.1.

Environment

  • tenjin_plugin: 1.4.0
  • Tenjin Android SDK: 1.20.0
  • Flutter: 3.44.4
  • Android Gradle Plugin: 8.13.2
  • Application compile SDK: 36
  • Java: 17

Steps to Reproduce

  1. Add tenjin_plugin: ^1.4.0 to a current Flutter Android application.
  2. Resolve dependencies with flutter pub get.
  3. Build a release app bundle with flutter build appbundle --release.
  4. Observe :tenjin_plugin:checkReleaseAarMetadata fail because the plugin library is compiled against API 33.

Current Behavior

The application can compile against API 36, but the Tenjin plugin remains independently pinned to API 33 and fails AAR metadata validation before compilation completes.

Expected Behavior

The latest Tenjin Flutter plugin should compile successfully with the AndroidX dependency versions resolved by Tenjin Android SDK 1.20.0 and current stable Flutter tooling.

Proposed Fix

Raise the plugin module's compileSdkVersion from 33 to at least 34. This changes only the APIs available while compiling the library; it does not change the plugin's minSdkVersion 21 or the consuming application's target SDK.

Impact

This blocks Android release builds for applications using the latest tenjin_plugin, including CI/CD app-bundle builds intended for Google Play.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions