Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试更改我的应用程序图标时,Android Studio 正在删除 mipmap 文件夹!!!
这是 mipmap 文件夹,但是当我检查它们时,我发现它们是空的!
我在更改启动器图标时遇到了类似的问题。当我进行构建时,一些mipmap文件将被删除。我发现 API 25 及以下版本的启动器图标受到了影响。在目标系统上,显示的是默认启动器图标,而不是我的自定义图标。
mipmap
这似乎是可行的:我使用文件资源管理器删除所有ic_launcher*文件,然后使用 Android Studio 创建一个新的ic_launcher图像资源。当我进行构建时,所有文件夹都已填充并且文件保留在原位。启动器图标在所有 API 级别上都是正确的。
ic_launcher*
ic_launcher