To bigin with upgrade your Gradle Plugin as following
classpath 'com.android.tools.build:gradle:3.2.1'
If you after upgrading you are facing following error:
Could not find com.android.tools.build:gradle:3.2.1.
You need to just add google() to your repositories as following:
repositories { google() jcenter() }
And your issue will be resolved.