2016-05-24 88 views
0

你好傢伙我試圖改變我的離子應用圖標,但我無法做到這一點。每次我改變圖標,並構建我得到這個錯誤更改離子應用圖標

:mergeDebugResourcesAAPT err(Facade for 260808337): libpng error: Not a PNG file 
AAPT err(Facade for 698764889): libpng error: Read Error 
AAPT err(Facade for 698764889): libpng error: Read Error 
AAPT err(Facade for 698764889): libpng error: Read Error 
AAPT err(Facade for 698764889): libpng error: Not a PNG file 
AAPT err(Facade for 129342802): libpng error: Not a PNG file 
AAPT err(Facade for 129342802): libpng error: Read Error 
AAPT err(Facade for 129342802): libpng error: Not a PNG file 
AAPT err(Facade for 506232339): libpng error: Not a PNG file 
AAPT err(Facade for 506232339): libpng error: Read Error 
AAPT err(Facade for 370362787): libpng error: Not a PNG file 

我從resources/android/icon改變了所有的文件,並從resources/icon.png的的icon.png文件,但我不明白爲什麼我會得到這個錯誤。請幫我解決

+0

@ManuValdésyes我按照說明操作。我使用自己的文件替換了'resources/icon.png'和'resources/splash.png'中的文件,並將名稱更改爲resources文件夾已有的名稱,然後運行離子資源。 – Gardezi

+0

@ManuValdés我甚至已將icon.png文件放在android文件夾中,但它仍然拋出上述錯誤 – Gardezi

+0

鏈接已損壞:https://ionicframework.com/docs/native/splash-screen/ – Efren

回答

1

我覺得問題出在你原來的png文件上,如here所述。確保在創建時不要對png文件進行任何預處理;在你的圖像編輯器中,確保你用最兼容的png選項保存它。

+0

我沒有' t做了任何與該文件的預處理,但這是一個高清文件圖像 – Gardezi

+1

請問您可以請指導我應該在哪裏放置鏈接選項 – Gardezi

+0

否,該選項不適用於離子,但問題仍然在您的原始PNG文件 –