Question: ```
Launching lib\main.dart on Android SDK built for x86 in debug mode...

```

Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\tyous\StudioProjects\untitled\android\app\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':app'.

> 
> Failed to apply plugin 'com.android.internal.version-check'.
> Could not create plugin of type 'VersionCheckPlugin'.
> > Could not generate a decorated class for type VersionCheckPlugin.
> > Lcom/android/ide/common/repository/GradleVersion;
> 
> 
> 

* 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 51s
Exception: Gradle task assembleDebug failed with exit code 1

Answer: 
if you run the first time it will download the grandle documentation. after that it wont take a long time
I recommend you to connect your personal device in Android Studio. It might give you quicker results.

Coming back to your error, does this help?
[Android Studio - Failed to apply plugin [id 'com.android.application']](https://stackoverflow.com/questions/37086806/android-studio-failed-to-apply-plugin-id-com-android-application?rq=1)