From 5c7ddabe2598e98454a0afbe17f0dcdec9c88aee Mon Sep 17 00:00:00 2001 From: Minsuk Eom Date: Sat, 11 May 2019 00:12:56 +0900 Subject: [PATCH] Fix build error on Android Studio 3.4 In Gradle 5.x setDestination(Object file) has been removed. See https://stackoverflow.com/a/54672720/3687394 for more information. --- build.gradle | 4 ++-- config/quality/quality.gradle | 12 ++++++------ gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index abc5e79..b6b4822 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.3.1' + classpath 'com.android.tools.build:gradle:3.4.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -75,4 +75,4 @@ ext { junitVersion = '4.12' espressoVersion = '3.1.0' mockitoVersion = '2.15.0' -} \ No newline at end of file +} diff --git a/config/quality/quality.gradle b/config/quality/quality.gradle index 51fec79..096b04f 100644 --- a/config/quality/quality.gradle +++ b/config/quality/quality.gradle @@ -47,7 +47,7 @@ task checkstyle(type: Checkstyle, group: 'Verification', description: 'Runs code reports { xml.enabled = true xml { - destination "$reportsDir/checkstyle/checkstyle.xml" + destination file("$reportsDir/checkstyle/checkstyle.xml") } } @@ -73,10 +73,10 @@ task findbugs(type: FindBugs, xml.enabled = true html.enabled = false xml { - destination "$reportsDir/findbugs/findbugs.xml" + destination file("$reportsDir/findbugs/findbugs.xml") } html { - destination "$reportsDir/findbugs/findbugs.html" + destination file("$reportsDir/findbugs/findbugs.html") } } @@ -98,10 +98,10 @@ task pmd(type: Pmd, group: 'Verification', description: 'Inspect sourcecode for xml.enabled = true html.enabled = true xml { - destination "$reportsDir/pmd/pmd.xml" + destination file("$reportsDir/pmd/pmd.xml") } html { - destination "$reportsDir/pmd/pmd.html" + destination file("$reportsDir/pmd/pmd.html") } } -} \ No newline at end of file +} diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3d1d63c..f096257 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip