关于项目报错:
Failed to capture snapshot of output files for task ':UserAppModule:packagePreDebug' property 'outputDirectory' during up-to-date check.
> Failed to create MD5 hash for file content.
这个报错是因为我这个项目自动打包设置了自动打包的输出目录
android.applicationVariants.all { variant ->
variant.outputs.all {
variant.getPackageApplication().outputDirectory = new File(project.rootDir.absolutePath + "/")
outputFileName = "${variant.productFlavors[0].manifestPlaceholders.get("UMENG_CHANNEL_VALUE")}_${variant.productFlavors[0].name}_v${defaultConfig.versionName}.apk"
}
}
这个目录我这边无法获取所以报错
解决方法:
分别注释掉这段gradle输出目录即可。