我尝试使用firebase_admob,并且更改了AndroidManifest.xml文件中的元数据。我撤消了更改,现在文件如下所示。
<meta-data
android:name="flutterEmbedding"
android:value="2" />
现在,我在调试应用程序时遇到问题,我被困在Installing build\app\outputs\apk\app.apk...
我的调试控制台显示:√ Built build\app\outputs\apk\debug\app-debug.apk.
我执行了flutter clean
,擦除了模拟器数据。
尝试调试后,它再次卡在Installing build\app\outputs\apk\app.apk...
显示白色屏幕几秒钟,然后卡住。
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.project.bfdi_app">
<!-- 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="WBH App"
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">
<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>