'Build file 'D:\flutter-teplate\e-comerce\ozangue\android\app\build.gradle' line: 24 When I try to import a template that I just downloaded

There are people who have encountered this problem before. I've tried some solution that I've seen but it doesn't work. Any ideas ?

Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\flutter-teplate\e-comerce\argon-flutter-master\android\app\build.gradle' line: 24

* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.NoClassDefFoundError: com/android/tools/lint/gradle/api/ToolingRegistryProvider

* 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 3s


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source