Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error :java.lang.Exception:Faild to load all assets: #310

Open
RafiKhazi opened this issue Mar 25, 2021 · 4 comments
Open

Error :java.lang.Exception:Faild to load all assets: #310

RafiKhazi opened this issue Mar 25, 2021 · 4 comments
Labels
Awaiting response Issue reporter needs to come back with more details

Comments

@RafiKhazi
Copy link

RafiKhazi commented Mar 25, 2021

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"
}
@RishabhKarnad
Copy link
Contributor

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.

@RishabhKarnad RishabhKarnad added the Awaiting response Issue reporter needs to come back with more details label Mar 26, 2021
@RafiKhazi
Copy link
Author

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

@RishabhKarnad
Copy link
Contributor

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?

@looju
Copy link

looju commented Dec 25, 2022

Currently having this error. The error can be seen in the expo go app as an error log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting response Issue reporter needs to come back with more details
Projects
None yet
Development

No branches or pull requests

3 participants