update gradle to 5.1.1
This is another necessary step for updating to the latest stable android-gradle-plugin 3.4.2.
If gradle is not updated you get the following error: Gradle sync failed: Minimum supported Gradle version is 5.1.1. Current version is 4.4.1. If using the gradle wrapper, try editing the distributionUrl