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

Android应用安装后无启动图标问题求助(已配置Manifest Intent)

解决启动图标无法显示的问题

嘿,我看你碰到了启动图标不显示的麻烦——删除默认MainActivity后,即使在Manifest里配置了Intent,还是没生成图标对吧?我帮你瞅了下你贴的Manifest代码片段,发现了一个很容易踩的小错误!

核心问题:Intent Filter里的Action拼写错误

你写的<action android:name="android:intent.action.MAIN" />里多了个冒号,正确的应该是android.intent.action.MAIN(把android:改成android.)。这个拼写错误会导致系统识别不到这是启动入口Activity,自然就不会生成启动图标了。

修正后的Manifest代码片段

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:roundIcon="@mipmap/ic_launcher_round" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme">

    <activity 
        android:name=".CategoryActivity" 
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

额外排查点(如果修正后还是不行的话)

  • 检查@mipmap/ic_launcher和@mipmap/ic_launcher_round对应的图标资源是否存在于项目的mipmap目录中,有没有缺失或者命名错误。
  • 尝试清理项目缓存并重新构建:Android Studio里可以点击Build -> Clean Project,然后Build -> Rebuild Project,有时候缓存会导致图标不更新。
  • 确认你的设备/模拟器有没有正确安装最新的APK,有时候旧版本的缓存会干扰显示。

内容的提问来源于stack exchange,提问作者chris chan

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.15 07:31:46