添加admob后,AndroidManifest出現14個錯誤

當我點擊src/main中的AndroidManifest.xml時,突然出現了14個錯誤。我試圖按照說明添加admob,但我搞砸了。我不知道該怎么辦。我集成了firebase,在添加admob之前一切正常。網站上的說明不清楚。請有人一步一步地告訴我哪里不對。

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.Akcakale_Sari_Sayfa">
    <!-- 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. -->
    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="Akcakale_Sari_Sayfa"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            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">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>


<manifest>
<application>
    <!-- Sample AdMob app ID: ca-app-pub-************************ -->
    <meta-data
        android:name="com.google.android.gms.ads.APPLICATION_ID"
        android:value="ca-app-pub-**************************"/>
</application>
</manifest>
? 最佳回答:

您添加了一個額外的<application>和<manifest>標記。

將admob meta標記粘貼到上述<application>標記中。

刪除額外的標簽。

Like this;

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.Akcakale_Sari_Sayfa">
<!-- 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. -->
<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="Akcakale_Sari_Sayfa"
    android:icon="@mipmap/ic_launcher">
    <activity
        android:name=".MainActivity"
        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">
        <!-- Specifies an Android theme to apply to this Activity as soon as
             the Android process has started. This theme is visible to the user
             while the Flutter UI initializes. After that, this theme continues
             to determine the Window background behind the Flutter UI. -->
        <meta-data
          android:name="io.flutter.embedding.android.NormalTheme"
          android:resource="@style/NormalTheme"
          />
        <!-- Displays an Android View that continues showing the launch screen
             Drawable until Flutter paints its first frame, then this splash
             screen fades out. A splash screen is useful to avoid any visual
             gap between the end of Android's launch screen and the painting of
             Flutter's first frame. -->
        <meta-data
          android:name="io.flutter.embedding.android.SplashScreenDrawable"
          android:resource="@drawable/launch_background"
          />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
    <!-- Don't delete the meta-data below.
         This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />
   <!-- Sample AdMob app ID: ca-app-pub-************************ -->
<meta-data
    android:name="com.google.android.gms.ads.APPLICATION_ID"
    android:value="ca-app-pub-**************************"/>
</application></manifest>
主站蜘蛛池模板: 在线精品国产一区二区三区| 亚洲综合国产一区二区三区| 精品人体无码一区二区三区| 无码精品一区二区三区免费视频 | 波多野结衣一区二区三区88| 久久精品视频一区| 成人丝袜激情一区二区| 精品一区二区三区视频在线观看| 亚洲日本一区二区三区在线不卡| 成人精品一区二区三区电影 | 国产乱码一区二区三区爽爽爽| 濑亚美莉在线视频一区| 亚洲AV无码一区二区三区牲色| 亚洲AV成人一区二区三区AV | 亚洲一区二区三区四区视频| 国产精品丝袜一区二区三区| 在线精品亚洲一区二区小说| 精品一区精品二区| 国产精品一区二区三区99| 波多野结衣精品一区二区三区 | 午夜精品一区二区三区在线视| 精品国产一区二区三区久| 国内精品视频一区二区八戒| 免费高清av一区二区三区| 四虎成人精品一区二区免费网站 | 国产乱码伦精品一区二区三区麻豆| 国产精品综合一区二区| 精品一区二区ww| 国内精自品线一区91| 日韩精品无码人妻一区二区三区| 国产精品va一区二区三区| 蜜桃视频一区二区| 香蕉在线精品一区二区| 中文字幕Av一区乱码| 久久人妻av一区二区软件 | 另类免费视频一区二区在线观看| 国产精品一区二区三区99| 久久一区二区三区精品| 91视频一区二区| 日韩精品一区二区三区不卡| 中文字幕久久亚洲一区|