自从我开始使用 Expo 使用 React Native 进行编程以来,我一直在使用 iOS 物理设备和 Expo 应用程序。我从来没有遇到过任何重大问题。
现在我想开始修复 Android 上的任何错误,但是当在我的 Android 物理设备上运行 Expo 应用程序时,Expo 应用程序在下载捆绑包时崩溃(关闭)。它不会在我的控制台中打印任何错误,所以我什至不知道从哪里开始......
这是我的 app.json:
{
"expo": {
"name": "PointoUserApp",
"slug": "PointoUserApp",
"version": "1.0.0",
"platforms": [
"ios",
"android",
"web"
],
"orientation": "portrait",
"icon": "./assets/Images/icon.png",
"splash": {
"image": "./assets/Images/splash.png",
"resizeMode":"contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "com.meretc23.PointoUserApp"
},
"android":{
},
"web": {
"favicon": "./assets/Images/favicon.png"
}
}
}
Run Code Online (Sandbox Code Playgroud)
请注意,android下它是空的,因为我不知道需要什么。
下面也是我的 package.json 文件。
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": …Run Code Online (Sandbox Code Playgroud)