Fou*_*our 7 android apk react-native expo
我建造了eas -p android --profile luna。然后,我下载到物理设备中。打开它时,应用程序在显示闪屏后崩溃。世博 SDK 45.0.0。
我尝试更改eas.json个人资料。这是我尝试过的。
"luna": {
"android": {
"buildType": "apk",
"distribution": "internal"
}
}
"luna": {
"android": {
"buildType": "apk",
"distribution": "internal",
"gradleCommand": ":app:assembleRelease"
}
}
"luna": {
"android": {
"buildType": "apk"
}
},
"luna": {
"android": {
"buildType": "apk",
"developmentClient": true
}
},
Run Code Online (Sandbox Code Playgroud)
DevelopmentClient 可以打开,但不是我想要的。
有人可以告诉我、指导我或给我建议吗
expo build:android?expo build经典版本将被完全删除。我应该在未来没有博览会的情况下构建反应原生应用程序吗?我的 package.json 文件。
"dependencies": {
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-community/datetimepicker": "6.1.2",
"@react-native-community/netinfo": "8.2.0",
"@react-native-masked-view/masked-view": "0.2.6",
"@react-navigation/material-top-tabs": "^6.2.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/stack": "^6.2.1",
"expo": "~45.0.0",
"expo-splash-screen": "~0.15.1",
"expo-sqlite": "~10.2.0",
"expo-status-bar": "~1.3.0",
"firebase": "^9.8.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-collapsible": "^1.6.0",
"react-native-gesture-handler": "~2.2.1",
"react-native-modal-datetime-picker": "^13.1.2",
"react-native-pager-view": "5.4.15",
"react-native-safe-area-view": "^1.1.1",
"react-native-screens": "~3.11.1",
"react-native-svg": "12.3.0",
"react-native-web": "0.17.7",
"victory-native": "^36.4.1",
"expo-dev-client": "~0.9.6"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@types/react-native": "^0.67.7",
"babel-plugin-root-import": "^6.6.0"
},
Run Code Online (Sandbox Code Playgroud)
gus*_*sti 10
您可以尝试记录您的错误。我建议您采取的第一步是将设备(启用 USB 调试)连接到 PC,转到adb安装位置,在该文件夹中打开 CMD/PowerShell 窗口,运行adb logcat *:S ReactNative:V ReactNativeJS:V,然后尝试打开崩溃的应用程序查看它执行时记录的内容。
我遇到的一个问题是 EAS 在构建过程中添加的某些依赖项存在问题,因此我react-native-reanimated@^2.8.0通过 单独安装了它 ( ) npm i,然后我的构建与 EAS 一起工作。
| 归档时间: |
|
| 查看次数: |
11508 次 |
| 最近记录: |