I am trying to build android apk for an expo application but the build just fails without any error. Just says “Build failed”. However the app runs successfully with no errors or warnings on expo start
. On running expo diagnostics
I get the following
Expo CLI 3.27.4 environment info:
System:
OS: Windows 10 10.0.18362
Binaries:
Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
SDKs:
Android SDK:
API Levels: 19, 20, 21, 22, 26, 27, 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-21 | Intel x86 Atom, android-21 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom
Android NDK: 19.0.5232133
IDEs:
Android Studio: Version 3.3.0.0 AI-182.5107.16.33.5199772
npmPackages:
expo: ^38.0.8 => 38.0.9
react: 16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2
react-navigation: ^4.3.7 => 4.4.0
Expo Workflow: managed
Below is my app.json
{
"expo": {
"name": "Ride App",
"description": "Taxi Booking App",
"slug": "Ride",
"privacy": "public",
"platforms": [
"ios",
"android"
],
"notification": {
"icon": "./assets/images/push_notification.png"
},
"version": "1.3",
"orientation": "portrait",
"icon": "./assets/images/appIcon.png",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "cover",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"usesAppleSignIn": true,
"bundleIdentifier": "com.rideapp.rideapp",
"infoPlist": {
"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": [
"fetch"
]
},
"config": {
"googleMapsApiKey": "xxx",
"googleSignIn": {
"reservedClientId": "xxx"
}
},
"googleServicesFile": "./GoogleService-Info.plist",
"buildNumber": "1.3"
},
"android": {
"package": "com.rideapp.rideapp",
"versionCode": 13,
"permissions": [
"CAMERA",
"READ_EXTERNAL_STORAGE",
"WRITE_EXTERNAL_STORAGE",
"LOCATION",
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"CAMERA_ROLL"
],
"googleServicesFile": "./google-services.json",
"config": {
"googleMaps": {
"apiKey": "xxx"
}
},
"useNextNotificationsApi": true
},
"extra":{
"firebaseConfig":{
},
"googlemapkey": "xxx",
"cloud_function_server_url": "https://us-central-ride-global.cloudfunctions.net",
"iosStandaloneAppClientId": "xxx",
"androidStandaloneAppClientId": "xxx"
}
}
}
Please advice or give hint on what to do