My Flutter project was originally built using Flutter 3.7, and everything was working fine, including the call_log plugin (call_log: ^3.0.3).
However, after upgrading to the latest stable version (Flutter 3.19.2), I'm now getting the following error during build:
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> An issue was found when checking AAR metadata:
1. Dependency ':call_log' requires core library desugaring to be enabled
for :app.
See https://developer.android.com/studio/write/java8-support.html for more
details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 3m 58s
Error: Gradle task assembleDebug failed with exit code 1
My Setup
- Flutter version: 3.29.2 (stable)
- Previously working with: Flutter 3.7
- call_log plugin version: ^3.0.3
- Using Kotlin DSL (build.gradle.kts)
- Java version: 17
- NDK version: 27.0.12077973
How can I resolve this checkDebugAarMetadata failure related to core library desugaring when using call_log with the latest stable Flutter version?