Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdk 31 needed but not available #1364

Closed
MarijaPopovic opened this issue Oct 1, 2021 · 2 comments
Closed

Sdk 31 needed but not available #1364

MarijaPopovic opened this issue Oct 1, 2021 · 2 comments
Labels
info-needed / awaiting response Further information is requested

Comments

@MarijaPopovic
Copy link

Hi,

When building cordova android part there is issue with this dependency
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-30).

With cordova-android@10 I've got sdk-30, but how can I have sdk-31?

@breautek
Copy link
Contributor

breautek commented Oct 3, 2021

Do you use the cordova.plugins.diagnostic ​plugin?

This a known issue with that plugin where it improperly pinned the version allowing it to accept breaking changes automatically. There was a raised issue at dpa99c/cordova-diagnostic-plugin#440 and a fix was already landed and released. See dpa99c/cordova-diagnostic-plugin#440 (comment) for more details.

If you don't use the diagnostics plugin, then I'd advise scanning through your plugin's plugin.xml or gradle files for any overrides of the androidx.appcompat:appcompat package

@breautek breautek added the info-needed / awaiting response Further information is requested label Oct 3, 2021
@MarijaPopovic
Copy link
Author

Yes, I do. I did an update and I'll se the outcome. Thanks for a hint!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed / awaiting response Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants