You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter安卓应用无报错无法运行问题求助

Flutter安卓应用无报错无法运行问题求助

Hi,我最近碰到个棘手的问题,想请教下各位大佬:

之前我的Flutter应用运行完全正常,直到我添加了image_cropper插件。一开始添加完插件后应用还能正常跑,但我修改了AndroidManifest.xml之后,应用就彻底启动不了了。我已经把Manifest文件恢复到修改前的原始状态,可安卓设备上还是没法运行,不过我估计在Chrome浏览器上运行应该是没问题的。

下面是我当前的AndroidManifest.xml内容:

<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.xml恢复到修改前的原始状态

有没有大佬能指点下我接下来该怎么做呀?


备注:内容来源于stack exchange,提问作者Hisham shattnawi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 12:18:07