Error :java.lang.Exception:Faild to load all assets:
RafiKhazi opened this issue · 4 comments
when run app in production mode in expo I got this type of error
Error :java.lang.Exception:Faild to load all assets:
app.json
{
"expo": {
"name": "grab app",
"icon": "./assets/images/logo1024x1024.png",
"description": "grabapp App",
"slug": "rikshawala",
"privacy": "public",
"sdkVersion": "40.0.0",
"platforms": [
"ios",
"android"
],
"assetBundlePatterns": [
"assets/images/"
],
"android": {
"package": "com.exi.grab",
"versionCode": 1
}
},
"notification": {
"icon": "./assets/images/logo96x96.png"
},
"version": "1.0",
"orientation": "portrait",
"icon": "./assets/images/logo1024x1024.png",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "cover",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"packagerOpts": {
"config": "metro.config.js"
},
"ios": {
"supportsTablet": true,
"usesAppleSignIn": true,
"bundleIdentifier": "com.exi.grab",
"infoPlist": {
"NSLocationAlwaysUsageDescription": "This app uses the always location access in the background for improved pickups and dropoffs, customer support and safety purpose.",
"NSLocationAlwaysAndWhenInUseUsageDescription": "This app uses the always location access in the background for improved pickups and dropoffs, customer support and safety purpose.",
"NSLocationWhenInUseUsageDescription": "This app uses the location to find the Cabs near you.",
"NSCameraUsageDescription": "This app uses the camera to take your profile picture.",
"NSPhotoLibraryUsageDescription": "This app uses Photo Library for uploading your profile picture.",
"ITSAppUsesNonExemptEncryption": false,
"UIBackgroundModes": [
"audio",
"location",
"fetch"
]
},
"config": {
"googleMapsApiKey": "AIzaS_76hxCrC6jFut0"
},
"googleServicesFile": "./GoogleService-Info.plist",
"buildNumber": "1.0"
},
"android": {
"package": "com.exi.grab",
"versionCode": 1,
"permissions": [
"CAMERA",
"READ_EXTERNAL_STORAGE",
"WRITE_EXTERNAL_STORAGE",
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"CAMERA_ROLL",
"FOREGROUND_SERVICE",
"ACCESS_BACKGROUND_LOCATION"
],
"googleServicesFile": "./google-services.json",
"config": {
"googleMaps": {
"apiKey": "AISyA__76hxCrNIgut0"
}
},
"useNextNotificationsApi": true
},
"facebookScheme": "fb437477975",
"facebookAppId": "437827975",
"facebookDisplayName": "grabapp"
}
Please follow the template and provide all required information.
The error message does not give enough information. Please add the stack trace as well, and more information such as whether the error is seen at build time or at runtime.
the error is seen in runtime.in metro bundle the app working good with no errors when I ran app in development mode at expo then this type of error come out.And sorry i don't know where to get stack trace in react expo please help
You can get the stack trace from the error log. Where are you logging errors in production mode?
Also, how did you build for production?
Currently having this error. The error can be seen in the expo go app as an error log