A problem was found with the configuration of task ':app:createReleaseApkListingFileRedirect' (type 'ListingFileRedirectTask').
- In plugin 'com.android.internal.version-check' type 'com.android.build.gradle.internal.tasks.ListingFileRedirectTask' property 'listingFile' specifies file 'D:\XCHW\SmartButler\app\build\intermediates\apk\release\output-metadata.json' which doesn't exist.
-1、 这个原因有可能系统卡顿、导致的编译异常、建议PC重启
-2、 我尝试关闭自定义的apk输出路径,打包成功
/*applicationVariants.all { variant ->
variant.outputs.each { out ->
if (variant.buildType.name == "release") {
variant.getPackageApplicationProvider().get().outputDirectory = new File(project.rootDir.absolutePath + "/apk")
out.outputFileName = "tjbg_app.apk"
}
}
}*/