作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
在做 release build android react-native 的时候
$ ./gradlew assembleRelease
最后抛出以下错误。
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
。它应该有效。
关于android - ENOTEMPTY : directory not empty, rmdir '/tmp/react-native-packager-cache-02b2ace9b81fa119b172fdfd36d3a3b4e4156b70/cache',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47925141/
我是一名优秀的程序员,十分优秀!