Android应用更新后‘Open’按钮缺失问题排查求助
应用升级至Android 12后Play商店无“Open”按钮问题
我们近期将应用升级至适配Android 12(API level 31),基于Flutter 2.8.1版本构建。
应用已通过Google审核,但更新后设备及Play商店中原版本被移除,仅显示“Uninstall”按钮,“Open”按钮消失(截图1:缺失“Open”按钮)。
该问题覆盖Android 9、10、11、12及13版本,所有涉及的应用均启用了Google Pay。
已采取的步骤
- 确认商店中的版本显示情况(截图2:版本信息)
- 已在App Manifest中配置Activity
- 联系Google支持,对方建议检查上述Manifest配置,但我们已完成该操作,恳请提供解决方向或相关建议。
文件 AppManifest.xml
我们的AppManifest.xml文件是否存在配置错误?
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<BOUNDLE ID>"> <!-- io.flutter.app.FlutterApplication is an android.app.Application that calls FlutterMain.startInitialization(this); in its onCreate method. In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> <uses-permission android:name="android.permission.INTERNET" /> <!-- commenting this out as i don;t think we;re using it and google asks us why we're requesting it. it's for seeing what apps are installed on someones phone not sure if needed for web views perhaps? --> <!-- <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> --> <application android:label="@string/app_name" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- This keeps the window background of the activity showing until Flutter renders its first frame. It can be removed if there is no splash screen (such as the default splash screen defined in @style/LaunchTheme). --> <meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background" /> <meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" /> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER"/> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="stripesdk" android:host="3ds.stripesdk.io" /> </intent-filter> </activity> <activity android:name="com.yalantis.ucrop.UCropActivity" android:screenOrientation="portrait" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/> </application> <meta-data android:name="flutterEmbedding" android:value="2" /> </manifest>
内容的提问来源于stack exchange,提问作者Greg Price
相关产品推荐
相关产品推荐

