[英]Cannot change launcher icon android
我正在嘗試更改我正在開發的應用程序的啟動器圖標,但圖標保持不變(Android Studio 3.0)。 我嘗試從manifest.xml和minimap更改它。 它似乎是從名為 ic_launcher_background.xml 和 ic_launcher_forground.xml 的兩個 XML 文件中提取圖標。 我曾嘗試刪除這些文件,但不允許安全刪除。 我附上了我的項目的截圖。 在此處輸入圖片說明
嘗試將您的 ic_launcher_torch 圖標移動到 mipmap 目錄中
android:icon="@mipmap/yourLogoName"
圖像將保存在/res/drawable文件夾中。 了解更多: https : //developer.android.com/studio/write/image-asset-studio.html
將啟動器圖標 .png 文件復制並粘貼到 mipmap 文件夾。 如果將圖標添加到所有屏幕類型 hdpi、mdpi、xhdpi 等,則更好。然后像這樣更改 android manifest 代碼。
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
在兩個位置的清單文件中進行更改 android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round"
首先從手機上卸載應用程序(已經安裝了不要重新安裝)應用程序卸載后,再次嘗試安裝它。 我有同樣的問題,浪費了大約 2 小時,這對我有用
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.