當(dāng)前位置:
首頁 >
Failed to capture snapshot of output files for task ':UserAppModule:packagePreDebug' property 'outpu
發(fā)布時(shí)間:2023/12/15
28
豆豆
生活随笔
收集整理的這篇文章主要介紹了
Failed to capture snapshot of output files for task ':UserAppModule:packagePreDebug' property 'outpu
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
關(guān)于項(xiàng)目報(bào)錯(cuò):
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.
這個(gè)報(bào)錯(cuò)是因?yàn)槲疫@個(gè)項(xiàng)目自動(dòng)打包設(shè)置了自動(dòng)打包的輸出目錄
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"}}這個(gè)目錄我這邊無法獲取所以報(bào)錯(cuò)
解決方法:
分別注釋掉這段gradle輸出目錄即可。
總結(jié)
以上是生活随笔為你收集整理的Failed to capture snapshot of output files for task ':UserAppModule:packagePreDebug' property 'outpu的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 3DMAX怎么打造中国古代神话女娲角色
- 下一篇: 开发工作中平常 能用到的 Git 常用命