hello guys,
i just started to learn flutter(using android studio) and when i run the default app it shows me this error, can you help me pls!
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\hamza\Documents\flutter projects\android\app\build.gradle' line: 2
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
> Could not create plugin of type 'AppPlugin'.
> Could not generate a decorated class for type AppPlugin.
> com/google/wireless/android/sdk/stats/GradleBuildProject$PluginType
* 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 1m 35s
Error: Gradle task assembleDebug failed with exit code 1