问题背景:

一般我们在编译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

php stack trace,【原创】解读React Native报错:Run with --stacktrace option to get the stack trace......相关推荐

  1. Android 编译报Run with --stacktrace option to get the stack trace

    Android开发在编译过程中经常会报类似如下的错误,突如其来经常会让我们不知所措.这时候最需要的就是静下心来,照着报错的提示排查问题. FAILURE: Build failed with an e ...

  2. Run with --stacktrace option to get the stack trace. Run with --info or --debug

    服务构建报错: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ge ...

  3. Android studio 出现错误Run with --stacktrace option to get the stack trace. Run with --info or --debug o

    Android studio 出现错误Run with --stacktrace option to get the stack trace. Run with --info or --debug o ...

  4. vscode 调试flutter 出现错误Run with --stacktrace option to get the stack trace. Run with --info or --dubeg

    工欲善其事必先利器 错误如下: Run with --stacktrace option to get the stack trace. Run with --info or --dubeg xxx ...

  5. react native报错:Expected a component class,got[object object]

    正在写RN的视图部分,突然模拟器报错:Expected a component class,got[object object].找也找不到原因.后来才发现是自己粗心大意造成的. 错误代码: < ...

  6. react native 报错:cannot read property 'length' of undefined

    一.报错信息 根据信息,我们可以看出,这个报错信息和以前JS遇到的报错差不多.应该就是使用'.length'的对象没有定义或者没有值造成的. 二.逐步排错 1.先找到错误代码位置 //这两行代码的意思 ...

  7. 解决React Native报错:Error:Found unexpected optical bounds (red pixel)

    问题背景 同样是在升级 gradle plugin V2.2.3 --> gradle plugin V3.0.1后,运行至打包APK期间报错: Error:found unexpected o ...

  8. react native报错:undefined Unable to resolve module 'Dimensions' from 'App.js

    在获取屏幕宽度的时候报错, 原代码: 报错信息: 解决方式:

  9. android编译报错:Run with --stacktrace option to get the stack trace

    编译项目时报了截图所示的错误,但是并未告知哪里错了,可以照着提示在命令行执行命令: gradle compileDebug --stacktrace 于是就可以看到具体的报错日志了.

最新文章

  1. 整数除以JavaScript中的余数?
  2. web worker技术-js新线程
  3. 前端人英语学习的那点事儿
  4. java中的集合框架_JAVA中的集合框架(上)List
  5. 伪随机数生成器——random模块的用法
  6. 这下终于可以方便地发表测试型网页代码了(附源码下载)
  7. 谷歌开源容器镜像的签名和验证工具 Cosign
  8. zabbix api 批量添加主机(python3 requests)
  9. 上海房屋租赁合同登记备案证明办理流程
  10. Android双目摄像头(带人脸检测)正确调用姿势
  11. idea中设置EcmaScript6
  12. 三十岁仍一事无成,一个失败工程师的自白
  13. FLASH--W25QXX系列存储器
  14. 《尚硅谷大数据Hadoop》教程
  15. 【Linux】创建、修改和删除用户(useradd | usermod | userdel)
  16. 私有专辑 java,这是什么“专辑歌手”标签iTunes使用?任何方式使用java设置?
  17. 。2005年博客与Web2.0 十大武侠人物
  18. C# 与 js的相与调用
  19. 华为VRRP和NQA联动
  20. 深度学习利用回归算法进行数据预测

热门文章

  1. Android11调用相机保存并显示图片到imageview
  2. Linux服务器如何获取出口ip
  3. java中jgit中checkout,如何在JGit中合并?
  4. 文本左右对齐Python
  5. 生物大分子的计算机模拟就业,生物大分子计算机模拟.PDF
  6. 【悟空蜘蛛池】——专业SEO助力网站快速收录
  7. Matlab在自动控制领域中的应用
  8. Android Setting 设置项添加到快速搜索
  9. C语言——字符串函数(必收藏)
  10. 反卷积(Transposed conv deconv)实现原理(通俗易懂)