首页 文章

Android MipMaps无法正常工作(Android Studio)

提问于
浏览
1

所以,我在res /目录中设置了mipmap文件夹(例如/ src / main / res / mipmap-mdpi,依此类推,针对不同的密度),在清单中我放了android:icon = @ mipmap / ic_launcher用于ic_launcher.png文件,但是当我按下播放按钮时,我仍然可以在手机上找到那个安卓绿色人物 . 很沮丧 . 有什么建议吗?

香港专业教育学院尝试卸载应用程序和清理项目

3 回答

  • 0

    在您的Android Studio内部包管理器

    • 右键单击文件夹应用程序,然后选择新建 - >图像资源

    • 默认为启动器图标,只需选择您的图像即可

    enter image description here

  • 2

    我已经关闭了清单文件中的标记,因此它没有在mipmap资源中读取

    本来应该

    <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            >
    

    代替

    <application>
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
    
  • 0

    我不确定它是否与我的相同,但我删除了文件夹mipmap-anydpi-v26中的xml文件,之后它就完成了它的工作

相关问题