Skip to content

Issue installing 6.1.2 #554

@mingjunsiek

Description

@mingjunsiek

Package version
6.1.2

Environment

  • Android

Describe the bug

I am trying to install 6.1.2 but i faced the error below.
In my gradle, i have the following:

  • targetSdkVersion: 35
  • compilSdkVersion: 35
  • minSdkVersion: 23
  • Java 17
  • id("com.android.application") version "8.7.0" apply false

Based on the requirements of the package, it should be compatible. But i keep having this error.

FAILURE: Build failed with an exception.
[        ] * What went wrong:
[        ] Execution failed for task ':app:checkStagDebugAarMetadata'.
[        ] > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
[        ]    > 4 issues were found when checking AAR metadata:
[        ]        1.  Dependency 'androidx.core:core-ktx:1.17.0' requires libraries and applications that
[        ]            depend on it to compile against version 36 or later of the
[        ]            Android APIs.
[        ]            :app is currently compiled against android-35.
[        ]            Also, the maximum recommended compile SDK version for Android Gradle
[        ]            plugin 8.7.0 is 35.
[        ]            Recommended action: Update this project's version of the Android Gradle
[        ]            plugin to one that supports 36, then update this project to use
[        ]            compileSdk of at least 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-ktx:1.17.0' requires Android Gradle plugin 8.9.1 or higher.
[        ]            This build currently uses Android Gradle plugin 8.7.0.
[        ]        3.  Dependency 'androidx.core:core:1.17.0' requires libraries and applications that
[        ]            depend on it to compile against version 36 or later of the
[        ]            Android APIs.
[        ]            :app is currently compiled against android-35.
[        ]            Also, the maximum recommended compile SDK version for Android Gradle
[        ]            plugin 8.7.0 is 35.
[        ]            Recommended action: Update this project's version of the Android Gradle
[        ]            plugin to one that supports 36, then update this project to use
[        ]            compileSdk of at least 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).
[        ]        4.  Dependency 'androidx.core:core:1.17.0' requires Android Gradle plugin 8.9.1 or higher.
[        ]            This build currently uses Android Gradle plugin 8.7.0.

Looking into the package code for record_android-1.4.3, it has the following dependencies which is the offending code causing this issue:

dependencies {
    implementation 'androidx.core:core-ktx:1.17.0'
}

Can someone please advise on how i can get this package to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions