我在我的可繪製資源文件夾中針對不同屏幕尺寸具有不同的圖像尺寸。他們都是splash_login.png splash_screen.png。在我的layout-large資源目錄中,我有splash_login.jpg和splash_screen.jpg,因爲圖像非常大。現在,當我嘗試在我的堆棧跟蹤運行gradle這個編譯我碰到下面的錯誤資源已定義gradle安卓工作室
build/intermediates/symbols/release
Error Code:1
Output:
res/drawable-large-v4/splash_login.png:0: error: Resource entry splash_login is already defined.
res/drawable-large-v4/splash_login.jpg:0: Originally defined here.
res/drawable-large-v4/splash_screen.png:0: error: Resource entry splash_screen is already defined.
res/drawable-large-v4/splash_screen.jpg:0: Originally defined here.
我知道這是發生因爲文件擴展已更改,但沒有人知道怎麼去解決它沒有回覆我的大圖像.png文件?
謝謝!
顯然申請也可以更改圖像格式。謝謝, – MonoThreaded