【原创】解读React Native报错:Run with --stacktrace option to get the stack trace...
问题背景:
一般我们在编译RN时,如果失败,编译器会在终端抛出如下一段文字:
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for details * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
问题解读:
如题,Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output?
那么这段文字是什么意思呢?
其实很明显就是告诉我们可以带上参数 --stacktrace 或者 --info 或者 --debug 来查看更多的log,额,关键是有些人不知道这些参数隶属哪个命令,是的,它们隶属 gradlew 命令。
问题解决:
cd /path/to/project/android/ ./gradlew compiledebug --stacktrace ./gradlew compiledebug --info ./gradlew compiledebug --debug
版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。
本文链接:【原创】解读React Native报错:Run with --stacktrace option to get the stack trace...
发表评论: