【问题标题】:Could not load custom lint while expo managed build世博会托管构建时无法加载自定义 lint
【发布时间】:2022-01-03 13:13:06
【问题描述】:

该应用程序是在 expo cli(托管工作流)的帮助下创建的。完成构建所需的所有过程后,我构建了这个应用程序,并在打开 apk 文件时遇到了白屏。它在开发模式下运行良好,在 expo 上发布后运行良好。

构建发生后出现问题。请指导我解决这个问题。

after opening the apk nothing appears on screen

While building with expo build:android -t apk cmd:

app.json file

app.json file

App.js file

App.js file

App.js file

App.js file

【问题讨论】:

标签: android react-native deployment expo


【解决方案1】:

这可能是由于 JS 崩溃造成的。有多种情况会发生 JS 崩溃。即访问未定义的变量或访问未定义对象的属性等。

您可以在打开您的应用程序时检查 android studio 中的 logcat 是否存在特定于 JS 的错误。或者您也可以使用命令 adb logcat 进行记录。 https://developer.android.com/studio/command-line/logcat

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-28
    • 2011-08-09
    • 2022-12-17
    • 2020-03-03
    • 1970-01-01
    • 2021-01-16
    • 2020-12-11
    相关资源
    最近更新 更多