eas build problems

i want to publish my app but after command eas build i have this problems.

Prebuild

📝  Android package Learn more: https://expo.fyi/android-package

2[stderr] CommandError: Input is required, but ‘npx expo’ is in non-interactive mode.
3[stderr] Project must have a android.package set in the Expo config (app.json or app.config.js).

Hi @armenius, it seems in your app config file, the android.package property is not set. To publish the app or create an internal distribution build, you will have to configure it. Also, the eas configuration is also missing. I’d suggest reading the following docs:

1 Like

Hi Aman, thanks for your answer. actually i have the android.package property and android.versionCode property, i am configuring and creationg eas.json but error hapening i do not now why

Hi @armenius

Do you have app.json or app.config.js or both?

Do you use environment variables in app.config.js?

Can you post it/them here? Also your dependencies/devDependencies from package.json.

Hi @wodin thanks for your reply. Yes i have only app.json file.
no , i do not have environment variables and don’t have app.config.js.

app.json file
 "expo": {
    "name": "test",
    "slug": "test",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "userInterfaceStyle": "light",
    "splash": {
      "image": "./assets/icon.png",
      "resizeMode": "contain",
      "backgroundColor": "#000000"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "package": "com.armenius.test",
      "versionCode": 1
    },
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "extra": {
      "eas": {
        "projectId": "b28ed78d-4158-4506-db62-e66c2c4a501b"
      }
    }
  }
{
  "name": "test",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@babel/runtime": "^7.20.6",
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-masked-view/masked-view": "0.2.8",
    "@react-navigation/native": "^6.1.1",
    "@react-navigation/native-stack": "^6.9.6",
    "@react-navigation/stack": "^6.3.9",
    "expo": "~47.0.8",
    "expo-dev-client": "~2.0.1",
    "expo-status-bar": "~1.4.2",
    "react": "18.1.0",
    "react-native": "0.70.5",
    "react-native-gesture-handler": "~2.8.0",
    "react-native-google-mobile-ads": "^8.2.2",
    "react-native-progress": "^5.0.0",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-svg": "13.4.0",
    "react-native-svg-transformer": "^1.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
  "private": true
}

Can you share the link to the EAS Build where you are getting this error? Looking into your account, I see multiple builds, so want to make sure that I am looking into the right build. (Link of the build you share here will only be visible to Expo team members).

1 Like