2

I am getting this error when building my project

groovy.lang.MissingMethodException: No signature of method: org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar.toPath() is applicable for argument types: () values: []

my gradle script looks like this

newApkName = "${appName}${separator}${output.baseName}${separator}${variant.versionName}.apk" def relativeRootDir = output.packageApplication.outputDirectory.toPath() .relativize(rootDir.toPath()).toFile()

it seems the toPath() method signature has changed. please help

1 Answers1

0

I was able to resolve this issue by following Chris Parker's advice in this issue: variantOutput.getPackageApplication() is obsolete

Robert
  • 39,162
  • 17
  • 99
  • 152
mjancola
  • 429
  • 1
  • 4
  • 7