gradle: update plugin and wrapper

Change-Id: I19b3a07d4a2973e2ca52f04b2979f15b982e89a1
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/build.gradle b/build.gradle
index dfc9958..9ada94c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,7 +5,7 @@
     }
 
     dependencies {
-        classpath "com.android.tools.build:gradle:3.3.1"
+        classpath "com.android.tools.build:gradle:3.5.3"
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
@@ -19,10 +19,10 @@
     }
 }
 
-task updateGradleWrapper(type: Wrapper) {
+tasks.register("updateGradleWrapper", Wrapper) {
     // https://docs.gradle.org/current/release-notes.html
     // https://github.com/gradle/gradle/releases
-    gradleVersion = '5.1.1'
+    gradleVersion = '6.1.1'
     distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
 }