From f7e17fd2a4ce4cada49d51e158e12cd17dd3a8cd Mon Sep 17 00:00:00 2001 From: xuexiangjys Date: Fri, 28 Jun 2019 16:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xaop-runtime/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xaop-runtime/build.gradle b/xaop-runtime/build.gradle index f8a24d6..ad15857 100644 --- a/xaop-runtime/build.gradle +++ b/xaop-runtime/build.gradle @@ -31,7 +31,14 @@ dependencies { } android.libraryVariants.all { variant -> - JavaCompile javaCompile = variant.javaCompile + JavaCompile javaCompile = null + if (variant.hasProperty('javaCompileProvider')) { + //gradle 4.10.1 + + TaskProvider provider = variant.javaCompileProvider + javaCompile = provider.get() + } else { + javaCompile = variant.hasProperty('javaCompiler') ? variant.javaCompiler : variant.javaCompile + } javaCompile.doLast { String[] args = [ "-showWeaveInfo",