flutterでandroidのアプリ開発を行っております。
google paly consoleからリリースの作成をする際に、App Bundleをアップロードすると、下記のエラーが表示されました。
アップロードされた APK または Android App Bundle には、インテント フィルタを使用するアクティビティ、アクティビティ エイリアス、サービス、またはブロードキャスト レシーバが含まれていますが、'android:exported' プロパティ セットは使用されていません。このファイルは Android 12 以降にはインストールできません。詳細: developer.android.com/about/versions/12/behavior-changes-12#exported
詳細ページや、エラーの検索で見たページを参考に、「android/app/main/AndroidManifest.xml」に「android:exported="true"」を追加し、ビルドして再アップロードしましたが、同様のエラーが出続けています。
また、パッケージ内のmanifestも全て確認しました。
アプリはリリース済みで、過去にアップデートを行ったこともありますが、今回が初見のエラーで解決策が分からず困っております。
お力添えいただけると幸いです。
▼開発環境
flutter : 2.2.2
vs code : ver. 1.63.2
android/app/main/AndroidManifest.xml
flutter
1<manifest xmlns:android="http://schemas.android.com/apk/res/android" 2 package="com.xxxxxx.xxxxxxxx" 3 > 4 5/////////省略/////////// 6 7 <application 8 android:label="xxxxxxxx" 9 android:icon="xxxxxxxxxxxx"> 10 <meta-data android:name="com.google.android.geo.API_KEY" 11 android:value="xxxxxxxxxxxxxxxxx"/> 12 <activity 13 android:name=".MainActivity" 14 android:exported="true" //追加 15 android:launchMode="singleTop" 16 android:theme="@style/LaunchTheme" 17 android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" 18 android:hardwareAccelerated="true" 19 android:windowSoftInputMode="adjustResize"> 20 <meta-data 21 android:name="io.flutter.embedding.android.NormalTheme" 22 android:resource="@style/NormalTheme" 23 /> 24 <meta-data 25 android:name="io.flutter.embedding.android.SplashScreenDrawable" 26 android:resource="@drawable/launch_background" 27 /> 28 <intent-filter> 29 <action android:name="android.intent.action.MAIN"/> 30 <category android:name="android.intent.category.LAUNCHER"/> 31 </intent-filter> 32 </activity> 33 <activity 34 android:name="com.yalantis.ucrop.UCropActivity" 35 android:screenOrientation="portrait" 36 android:theme="@style/Theme.AppCompat.Light.NoActionBar" 37 android:exported="true"/> //追加 38 <meta-data 39 android:name="flutterEmbedding" 40 android:value="2" /> 41 </application> 42</manifest> 43
あなたの回答
tips
プレビュー