【发布时间】:2019-03-06 21:33:23
【问题描述】:
我正在为 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,但没有帮助!
【问题讨论】:
标签: android react-native react-redux react-native-android