反应本地应用程序:bundleReleaseJsAndAssets FAILED构建失败,发生异常

时间:2018-12-21 14:46:55

标签: react-native gradle android-gradle

package json

{
  "name": "Printune",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start"
  },
  "dependencies": {
    "native-base": "^2.4.3",
    "react": "16.3.1",
    "react-native": "0.55.3",
    "react-native-background-upload": "^4.4.0",
    "react-native-md5": "^1.0.0",
    "react-navigation": "^1.5.11"
  }
}

我的项目很简单

通过调试版本成功运行,但随后我就

gradlew aseembleDebug,生成失败原因如下:

:app:mergeReleaseResources截止日期 :app:bundleReleaseJsAndAssets失败

失败:构建失败,并出现异常。

失败:构建失败,并出现异常。

  • 出了什么问题: 在最新检查期间,无法捕获任务':app:bundleReleaseJsAndAssets'属性'$ 1'的输入文件的快照。
      

    无法读取路径'R:\ projects \ printune \ node_modules @ babel \ core \ node_modules \ json5.bin \ json5'。

windows 10

重新安装node_modules,重新启动并不能解决问题

过程镜头:

> 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.
> Could not read path 'R:\projects\1234567\node_modules\@babel\core\node_modules\json5\.bin\json5'.

0 个答案:

没有答案