Build Android App: Cannot read property 'forEach' of undefined

Hi guys.

Im facing the folowing error:

moonwalk@Pedros-Mac-mini:~/react-new-app (*)

EXPO_DEBUG=true expo publish master [aba950f5] deleted modified untracked
There is a new version of expo-cli available (3.0.8).
You are currently using expo-cli 2.6.0
Run npm install -g expo-cli to get the latest version
[14:42:51] Publishing to channel ‘default’…
[14:42:53] We noticed you did not build a standalone app with this SDK version and release channel before. Remeber that OTA updates will not work with the app built with different SDK version and/or release channel. Read more: https://docs.expo.io/versions/latest/guides/publishing.html#limitations
[14:42:59] Building iOS bundle
[14:42:59] Building Android bundle
[14:42:59] Analyzing assets
[14:43:07] Uploading assets
[14:43:07] No assets to upload, skipped.
[14:43:07] Processing asset bundle patterns:
[14:43:07] - /Users/moonwalk/react-new-app/assets/img/*
[14:43:07] Cannot read property ‘forEach’ of undefined
[14:43:07] TypeError: Cannot read property ‘forEach’ of undefined
at /xdl@52.0.0/src/Project.js:1009:26
at Generator.next ()
at step (/usr/local/lib/node_modules/expo-cli/node_modules/xdl/build/Project.js:2187:191)
at /usr/local/lib/node_modules/expo-cli/node_modules/xdl/build/Project.js:2187:361

=======================================
App.json

{
“expo”: {
“sdkVersion”: “33.0.0”,
“name”: “Lapamaki”,
“slug”: “lapamaki”,
“icon”: “./assets/img/brand/launcher.png”,
“version”: “5.0.3”,
“facebookAppId”: “2213543428873699”,
“facebookDisplayName”: “Lapamaki”,
“facebookScheme”: “fb2213543428873699”,
“splash”: {
“image”: “./assets/img/brand/splash_screen.png”,
“resizeMode”: “cover”
},
“updates”: {
“fallbackToCacheTimeout”: 0
},
“notification”: {
“icon”: “./assets/img/brand/launcher.png”
},
“ios”: {
“bundleIdentifier”: “br.lapamaki.app”,
“config”: {
“googleMapsApiKey”: “AIzaSyALaOjCr8T2NcHJmdwIoYBY8w1UraSUEAg”
},
“infoPlist”: {
“NSLocationWhenInUseUsageDescription”: “Por questão de segurança, precisamos da sua localização para garantir que você está dentro da loja”,
“NSCameraUsageDescription”: “Para que você marque seu ponto, é necessário que nos dê acesso a sua câmera”
}
},
“android”: {
“package”: “br.com.moonwalk.lapamaki”,
“versionCode”: 201,
“googleServicesFile”: “./google-services.json”,
“config”: {
“googleMaps”: {
“apiKey”: “AIzaSyALaOjCr8T2NcHJmdwIoYBY8w1UraSUEAg”
}
},
“permissions”: [
“CAMERA”,
“ACCESS_COARSE_LOCATION”,
“ACCESS_FINE_LOCATION”,
“NOTIFICATIONS”
]
},
“assetBundlePatterns”: [
“./assets/img/*”
],
“extra”: {
“apiBaseUrl”: “https://api.moonwalk.com.br”,
“UUID”: “f30412d5282e4cdab130c0b3350b4e8e”,
“moonwalkPasswordClientID”: “GuAl0G?1;EQ6_n5P?6=2UyraTdT=BwKIZa24=SHJ”,
“moonwalkFacebookClientID”: “OMzcI0Qe;0ewFgQb66yJ1BA=WQ;Ry3n=dZ1lYmX_”,
“primaryColor”: “#743F5D”,
“iconColor”: “#A33E46”,
“drawerIconColor”: “#FFFFFF”,
“navBarTextColor”: “#FFFFFF”,
“buttonTextColor”: “#FFFFFF”,
“borderColor”: “#F1F1F1”,
“secondaryColor”: “#CCC”,
“navIconColor”: “#939393”,
“defaultLocale”: “pt-BR”,
“statusBarStyle”: “light-content”,
“backgroundImageExists”: false,
“menu”: [
{
“name”: “aboutUs”,
“icon”: 1,
“type”: “aboutUs”
},
{
“name”: “products”,
“icon”: 8,
“type”: “products”
},
{
“name”: “loyalty”,
“icon”: 3,
“type”: “loyalty”
},
{
“name”: “notifications”,
“icon”: 6,
“type”: “notifications”
},
{
“name”: “contactUs”,
“icon”: 4,
“type”: “contactUs”
},
{
“name”: “localization”,
“icon”: 5,
“type”: “localization”
},
{
“name”: “help”,
“icon”: 2,
“type”: “help”
}
],
“help”: [
{
“section”: “welcome”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
},
{
“section”: “loyalty”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
},
{
“section”: “account”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
}
]
}
}
}

=============
package.json

name": “moonwalk-reactnative-template”,
“version”: “1.0.1”,
“private”: true,
“devDependencies”: {
“babel-preset-expo”: “^5.0.0”,
“jest-expo”: “^33.0.0”,
“react-native-scripts”: “2.0.1”,
“react-test-renderer”: “16.3.1”
},
“main”: “./node_modules/expo/AppEntry.js”,
“scripts”: {
“start”: “expo start”,
“eject”: “expo eject”,
“android”: “expo start --android”,
“ios”: “expo start --ios”,
“test”: “jest”,
“watchmanVars”: “echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances”,
“watchmanServer”: “watchman shutdown-server”,
“watchman”: “npm run watchmanVars && npm run watchmanServer”
},
“jest”: {
“preset”: “jest-expo”
},
“dependencies”: {
@expo/vector-icons”: “^9.0.0”,
“expo”: “33.0.0”,
“expo-barcode-scanner”: “^5.0.1”,
“expo-camera”: “^5.0.1”,
“expo-constants”: “^5.0.1”,
“expo-facebook”: “^5.0.1”,
“expo-linear-gradient”: “^5.0.1”,
“expo-localization”: “^5.0.1”,
“expo-location”: “^5.0.1”,
“expo-permissions”: “^5.0.1”,
“i18n-js”: “^3.3.0”,
“moment”: “^2.22.2”,
“moment-timezone”: “^0.5.21”,
“prop-types”: “^15.6.1”,
“react”: “16.8.3”,
“react-moment”: “^0.7.9”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz”,
“react-native-datepicker”: “^1.7.2”,
“react-native-draggable”: “^1.0.14”,
“react-native-easy-toast”: “^1.1.0”,
“react-native-elements”: “^0.19.1”,
“react-native-i18n”: “^2.0.15”,
“react-native-image-pan-zoom”: “^2.1.10”,
“react-native-image-zoom-viewer”: “^2.2.21”,
“react-native-maps”: “^0.24.2”,
“react-native-masked-text”: “1.9.1”,
“react-native-modal”: “^11.1.0”,
“react-native-navbar”: “^2.1.0”,
“react-native-picker-select”: “^4.1.0”,
“react-native-render-html”: “^4.1.2”,
“react-native-router-flux”: “4.0.6”,
“react-native-slideshow”: “^1.0.1”,
“react-native-snap-carousel”: “^3.7.5”,
“react-native-swiper”: “^1.5.13”,
“react-redux”: “^5.0.7”,
“redux”: “^4.0.0”,
“redux-logger”: “^3.0.6”,
“whatwg-fetch”: “^2.0.4”
}
}

Hey, a quick Google search reveals that this has cropped up before. You can find the likely causes and related workarounds in this Github thread

Thanks @charliecruzan
I Already solve this error.

Best,

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.