DEV Community

himiyoussef
himiyoussef

Posted on

sorry but this is my first project

FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\dell\AppData\Local\Pub\Cache\hosted\pub.dev\qr_code_scanner-1.0.1\android\build.gradle' line: 43 * What went wrong: A problem occurred evaluating project ':qr_code_scanner'. > Could not find method coreLibraryDesugaringEnabled() for arguments [true] on object of type com.android.build.gradle.internal.CompileOptions. * 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

Top comments (2)

Collapse
 
nlxdodge profile image
NLxDoDge • Edited

Ok to make this more easy to debug. Please share some code. Maybe though GitHub or other code sharing websites.

Second, please elaborate on what you are trying to do, because I only see that it cannot find a method on a class. I am just second guessing that you are trying to write some code that can open a QR code picture from an image?

Third, Is this your own class? Is this a Library class? Is the class in the classpath?
Just from this snippet there is not enough information to help at all, only being that I can write tips on how to improve this.

And last don't forget that putting only what you have right now on Stack Overflow will 100% get you downvoted by everyone.

Collapse
 
himiyoussef profile image
himiyoussef

thanks a lot i'm verry happy to join our community