As part of our ongoing development and customer satisfaction, we come across a build error within Karenderia Mobile Apps and other Apps which use certain Cordova plugins called Diagnostic. We had observed that there was a constant build error with the error log stating.
What went wrong: [03:26:12] Execution failed for task ':app:checkReleaseAarMetadata'. [03:26:12] > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction [03:26:12] > The minCompileSdk (31) specified in a [03:26:12] dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) AAPT: error: resource android:attr/lStar not found.
We had checked the error and found that it was caused by a plugin called Cordova.plugins.diagnostic, as from Karenderia Scripts, we see that the author had used the said plugins on Customer App, Merchant App and Offcouse Driver App, But due to latest competency issue the build is failing,. So we see that the best way to overcome the said error is by upgrading the Cordova.plugins.diagnostic to the latest version that is 6.1.0.
To do this, follow the steps.
- Open the package.json files
- Find the plugin entry “cordova.plugins.diagnostic”: “6.0.2”, or any version lower than 6.1.0
- Replace the version 6.0.2 to 6.1.0 and save the file.
- Now start the build again.
- This will now solve your issue , and you may have now a sucessfull build,.
If you need any further help, do contact us on chat or ticket. Happy to help