'Running first Kotlin example in Android Studio with failure

I am new to Android development and created my first Android Studio project (Empty Activity type). However when I am presented with the following error message:

5:09 PM Gradle sync failed: Plugin [id: 'org.jetbrains.kotlin.android', version: '1.6.21', apply: false] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.6.21') Searched in the following repositories: Gradle Central Plugin Repository Google MavenRepo (9 s 311 ms)

I am running Windows 10 and have no clue how to resolve this. Can anybody provide some input?

thanks



Sources

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

Source: Stack Overflow

Solution Source