【问题标题】:react-native build release APK failedreact-native build release APK 失败
【发布时间】: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


    【解决方案1】:

    我在这里遇到了与 Buck 完全相同的问题

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

    希望这可以帮助某人!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-20
      • 2019-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多