ENOTEMPTY: 目录不为空, rmdir '/tmp/react-native-packager-cache-02b2ace9b81fa119b172fdfd36d3a3b4e4156b70/



执行释放构建Android React-native

$ ./gradlew assembleRelease

末尾丢弃的Follwing错误。

Loading dependency graph, done.
ENOTEMPTY: directory not empty, rmdir '/tmp/react-native-packager-cache-02b2ace9b81fa119b172fdfd36d3a3b4e4156b70/cache'
:app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'node'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED

我正在使用

"react": "16.0.0-beta.5",
"react-native": "0.49.3",

请指导

尝试 ./gradlew clean,然后 ./gradlew assembleRelease。它应该起作用。

我尝试了以下内容,它对我有用,

1)类型 rm -rf〜。/rncache 并点击Enter。

2)Watchman Watch-Del-All;npm start-- reset-cache

3)删除 node_modules 来自您的项目的文件夹。

4)现在运行 npm install

5)终于反应本地运行android

希望它能起作用。

相关内容

  • 没有找到相关文章

最新更新