Skip to content

Update to 1.14.7 bumps minSdkVersion to 26 on Android #1479

@jacek-marchwicki

Description

@jacek-marchwicki

[Regression] 1.14.7 bumps minSdkVersion to 26, breaking builds for API < 26

Description
There is a regression in io.mockk:mockk-android:1.14.7 compared to 1.14.6. The library's minSdkVersion was increased to 26, causing manifest merger failures for projects targeting older SDKs (e.g., API 23).

This is similar to #893 from version 1.12.7.

Steps to Reproduce

  1. Create an Android project with minSdk = 23.

  2. Update MockK dependency to 1.14.7 (Note: 1.14.6 works correctly).

  3. Attempt to build the project.

Error Log

Manifest merger failed : uses-sdk:minSdkVersion 23 cannot be smaller than version 26 declared in library [io.mockk:mockk-android:1.14.7] your/path/AndroidManifest.xml as the library might be using APIs not available in 23
    Suggestion: use a compatible library with a minSdk of at most 23,
        or increase this project's minSdk version to at least 26,
        or use tools:overrideLibrary="io.mockk.android" to force usage 

Context/Analysis
The issue appears to be caused by a minSdk version bump in commit daabf98.

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