我有一个flutter应用程序,在我开始添加“image_cropper”之前正在运行,添加它之后,该应用程序仍然可以工作,但后来我必须在“AndroidManifest”上进行编辑,我编辑了它,之后该应用程序不再工作了,我恢复了“AndroidManifest” “照原样,该应用程序仍然无法运行。 注意:*我尝试在 Android 设备上运行它,我认为如果我在 chrome 上运行它它会工作* 我应该怎么办? 我的清单:
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="football_scheduler"
android:name="${applicationName}"
android:usesCleartextTraffic="true"
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">
<!-- 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"
/>
<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>
我尝试过的 按原样返回“AndroidManifest”。
我通过将这些命令一一添加到终端来解决问题
扑扑干净
颤动构建
flutter 酒吧获取