LoginSignup
0
0

More than 1 year has passed since last update.

FlutterのAndroidのアプリ公開に失敗する

Last updated at Posted at 2023-02-26

はじめに

・Androidアプリを公開するにあったって、Google Play Consoleからアプリを公開しますが、buildしたファイルをuploadしようとすると、エラーが起こった際のまとめを備忘録として残そうと思います。

「広告ID」の警告が出た場合

ref:

「このファイルは Android 12 以降にはインストールできません」の警告が出た場合

・対処法
android/app/src/main/AndroidManifest.xmlにandroid:exported = “true”を追記する。

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.news_api">
   <application
        android:label="news_api"
        android:name="${applicationName}"
        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|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize"
+           android:exported = “true”>

ref:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0