Error:No such property: GradleVersion for class: JetGradlePlugin
I had this problem while upgrading to java 11.
I had to downgrade gradle from 5.0 to 4.10.3. Then I needed to upgrade to the latest version of Intellij Idea. You'll probably just need to upgrade Intellij.
edit: Downgrading gradle is the fix. The Intellij version didn't matter.
You need at least Idea 2017.3 to work with Gradle 5.0+, earlier versions are not compatible because of implicit import being removed in version 5.0. See related youtrack ticket
After a couple of days, I found a solution to this.
1)First, find the Gradle version (gradle -v), In my case, Gradle version was 4.1.
2)Then in the android studio change my Gradle version to 4.1 (File --> Project Structure -> Project)
3)Click ok Button.
that's it :)