Skip to content

Build Failure: minSdkVersion conflict with mozillaAndroidComponents 145.0.2 during test assembly #10299

@amir-azari

Description

@amir-azari

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

Latest main branch (version 145.0.2 for Mozilla components)

Where did you get the app from?

None

Android version

N/A (Build issue)

Device model

No response

Steps to reproduce

1.Clone the repository and checkout the main branch.
2.Open the project in Android Studio and sync Gradle.
3.Run "Clean and Assemble Project with Tests" from the Build menu.

Expected behavior

The project should assemble correctly for testing, maintaining compatibility with the defined minSdkVersion 21.

Actual behavior

While the main app modules (app-thunderbird, app-k9mail) can be run normally, the build fails when assembling with tests. Specifically, the :feature:telemetry:glean module fails during manifest merging because mozillaAndroidComponents version 145.0.2 requires minSdkVersion 26.

Image

Logs

Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 26 declared in library [org.mozilla.components:lib-fetch-okhttp:145.0.2] C:\Users\Parasite.gradle\caches\9.1.0\transforms\93ed7d1182ef66fe7a46b2417d917015\workspace\transformed\lib-fetch-okhttp-145.0.2\AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 26,
or use tools:overrideLibrary="mozilla.components.lib.fetch.okhttp" to force usage (may lead to runtime failures)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething is causing incorrect behavior or errorsunconfirmedNewly reported issues awaiting triage or confirmation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions