You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error message when attempting to build on latest released plugin v4.0.2:
Execution failed for task ':app:checkDebugAarMetadata'.
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).
Dependency: androidx.work:work-runtime:2.7.1.
AAR metadata file: .gradle/caches/transforms-3/73e09204760ea4755dc4d86cf2bf4d4f/transformed/work-runtime-2.7.1/META-INF/com/android/build/gradle/aar-metadata.properties.
The targetSdkVersion must be 31 in your config.xml file, though the minSdkVersion can still be lower than that.
Additionally, there may be other projects that have to be updated. Some of the other plugins do not officially support Android 12 and as of writing this the release of cordova-android which officially supports Android 12 (10.1.2, 11.0.0) doesn't appear to have been released.
You can review the updated demo project as we have updated the targetSdkVersion to 31, cordova-android and cordova to the lastest version. Everything is working fine. PR #214.
Getting this error message when attempting to build on latest released plugin v4.0.2:
Execution failed for task ':app:checkDebugAarMetadata'.
Cordova CLI version 11
Cordova Android Platform: 10.1.1
Create brand new Cordova app: cordova create test_app com.test.app test_app
Add Android platform: cordova platform add android
Add only Spoon Consulting Plugin: cordova plugin add @spoonconsulting/cordova-plugin-background-upload
Prepare/Build: cordova prepare && cordova build
The text was updated successfully, but these errors were encountered: