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",