juliuscanute / qr_code_scanner

QR Code Scanner for Flutter
BSD 2-Clause "Simplified" License
1.01k stars 799 forks source link

Dependency ':qr_code_scanner' requires core library desugaring to be enabled for :app. #723

Closed UtkuDalmaz closed 9 months ago

UtkuDalmaz commented 9 months ago

I am having this after upgrading gradle

  1. Dependency ':qr_code_scanner' requires core library desugaring to be enabled for :app.

       See https://developer.android.com/studio/write/java8-support.html for more
       details.

Any idea how to fix it?

miguelangelflores1993 commented 9 months ago

same error

zakblacki commented 9 months ago

Same error at least tell us how you fixed ?! @UtkuDalmaz

UtkuDalmaz commented 9 months ago

Same error at least tell us how you fixed ?! @UtkuDalmaz

Added this to android place in build.gradle

compileOptions {
        coreLibraryDesugaringEnabled true
    }

and this to dependency in build.gradle

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'