Cannot build standalone app (Unexpected end of JSON input)

Hello, when I try to build a standalone app with
expo build:android
I get the error

[18:23:45] Metro Bundler has encountered an internal error, please check your te
rminal error output for more details
[18:23:45] Unexpected end of JSON input
[18:23:46] Cannot read property ‘status’ of undefined
[18:23:46] TypeError: Cannot read property ‘status’ of undefined
at C:\xdl@52.0.11\src\Project.js:156:70
at Generator.throw ()
at step (C:\Program Files\nodejs\node_modules\expo-cli\node_modules\xdl\buil
d\Project.js:2211:191)
at C:\Program Files\nodejs\node_modules\expo-cli\node_modules\xdl\build\Proj
ect.js:2211:402
at
at process._tickCallback (internal/process/next_tick.js:188:7)

I’m on windows, it looks like the builder is searching for MacOS stuff…
I obviously don’t have a C:\xdl@52.0.11 folder.

Hey @alfredopacino,

Can you share your app.json?

Cheers,
Adam

Are you saying building on Windows platform I should remove expo.platform.ios?


{
  "expo": {
    "name": "MyApp",
    "slug": "MyApp",
    "privacy": "unlisted",
    "sdkVersion": "32.0.0",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "3.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
	"android": {
		"package":"it.MyApp",
		"versionCode": 3,
		"permissions": []
	}
  }
}

nop, I removed
expo.platform.ios
and
"ios": { "supportsTablet": true}

It doesn’t solves…

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