我正在为 react-native 的移动设备开发跨平台应用程序。当我尝试创建发布 APK 时,它失败并显示错误:
> Task :app:prepareLintJar UP-TO-DATE
> Task :app:mainApkListPersistenceRelease UP-TO-DATE
> Task :app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Failed to capture snapshot of input files for task
':app:bundleReleaseJsAndAssets' property '$1' during up-to-date check.
> Failed to create MD5 hash for file
'/Users/developer/dummy_app/.buckd/sock' as it does not exist.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
24 actionable tasks: 1 executed, 23 up-to-date
2:16:52 AM: Task execution finished 'assembleRelease'.
我考虑解决一个类似的问题,比如从根文件夹中删除 .buckd/sock 文件和 invalidatecache/restart,但没有帮助!
我在这里遇到了与巴克完全相同的问题
删除整个.buckd
文件夹后,任务:app:bundleReleaseJsAndAssets
成功通过!
希望这可以帮助某人!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句