react-native版本发布APK失败

时间:2019-03-06 21:33:24

标签: android react-native react-redux react-native-android

我正在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无效,但无济于事!

1 个答案:

答案 0 :(得分:1)

我在Buck上遇到了完全相同的问题

删除整个.buckd文件夹后,任务:app:bundleReleaseJsAndAssets在!之后成功通过!

希望这可以帮助某人!