Error: Could not read application id from Android project.

{
  "expo": {
    "name": "TGS",
    "description": "All in one travel app",
    "slug": "TGS",
    "version": "0.0.1",
    "orientation": "portrait",
    "icon": "./assets/images/faviconlogo.png",
    "packagerOpts": {
      "config": "metro.config.js",
      "sourceExts": [
        "expo.ts",
        "expo.tsx",
        "expo.js",
        "expo.jsx",
        "ts",
        "tsx",
        "js",
        "jsx",
        "json",
        "wasm",
        "svg"
      ]
    },
    "splash": {
      "image": "./assets/images/faviconlogo.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.tgsapp.demo"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "softwareKeyboardLayoutMode": "pan",
      "package": "com.tgsapp.demo"
    },
    "web": {
      "favicon": "./assets/images/favicon.png"
    },
    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "technogramsolutions",
            "project": "technogramsolutions",
            "authToken": "-"
          }
        }
      ]
    }
  }
}

Im getting the error Specifying “android.package” in app.json is deprecated for generic projects.
EAS Build depends only on the value in the native code. Please remove the deprecated configuration.
Error: Could not read application id from Android project.

WHile doing eas build

can you please share your eas.json? it sounds like you have a bare project, so in eas.json you have “generic” in your eas.json. is that intentional? are you intending to build a managed project?

{
  "builds": {
    "android": {
      "release": {
        "workflow": "managed"
      }
    },
    "ios": {
      "release": {
        "workflow": "managed"
      }
    }
  }
}

@notbrent No i was trying to do a build on a managed project

does this happen in a blank new project?

No this happened in a typescript template expo managed project

i resolved this by deleting an android folder in workspace directory and also a tmp folder

1 Like