Android 更新后打开我的 Expo 应用程序的旧版本

Android opens old version of my Expo App after update

我已经用新版本更新了我的 android 应用程序,它是一个 expo 应用程序,但是当用户打开应用程序时(更新后)它会打开旧版本。

除非用户从 phone 删除现有应用并从 google Play 商店重新安装,否则它不会获得更新。

你可以在下面看到我的app.json文件,请帮忙。

{
    "expo": {
        "name": "ABC",
        "description": "ABC Description",
        "slug": "abc-abc-abc",
        "version": "2.0.2",
        "privacy": "unlisted",
        "sdkVersion": "39.0.0",
        "orientation": "portrait",
        "icon": "./assets/icon.png",
        "splash": {
            "image": "./assets/splash.png",
            "resizeMode": "contain"
        },
        "updates": {
            "enabled": false
        },
        "assetBundlePatterns": ["**/*"],
        "ios": {
            "bundleIdentifier": "com-abc-abc",
            "buildNumber": "2.0.2",
            "supportsTablet": true
        },
        "android": {
            "package": "com.abc",
            "versionCode": 45,
            "adaptiveIcon": {
                "foregroundImage": "./assets/icon.png",
                "backgroundColor": "#ffffff"
            },
            "permissions": ["WRITE_CALENDAR", "READ_CALENDAR"]
        }
    }
}

改变

"privacy": "unlisted" to "privacy": "public"

解决了问题