Minimaps not being generated


#1

Running ionic resources is not generating minimaps folders for android due to which the build is failing.

C:\Users\tanmay\Utrade\GMEX\utrade\web\utrade\static\utrade\HybridApp\ionic>ionic resources
Ionic icon and splash screen resources generator
uploading icon.png…
uploading splash.png…
splash.png (2732x2732) upload complete
icon.png (1024x1024) upload complete
generating icon ios icon-small@3x.png (87x87)…
generating icon ios icon-small@2x.png (58x58)…
generating icon ios icon-small.png (29x29)…
icon ios icon-small.png (29x29) generated
generating icon ios icon-83.5@2x.png (167x167)…
icon ios icon-small@2x.png (58x58) generated
generating icon ios icon-76@2x.png (152x152)…
icon ios icon-small@3x.png (87x87) generated
generating icon ios icon-76.png (76x76)…
icon ios icon-76@2x.png (152x152) generated
generating icon ios icon-72@2x.png (144x144)…
icon ios icon-76.png (76x76) generated
generating icon ios icon-72.png (72x72)…
icon ios icon-83.5@2x.png (167x167) generated
generating icon ios icon-60@3x.png (180x180)…
icon ios icon-72.png (72x72) generated
generating icon ios icon-60@2x.png (120x120)…
icon ios icon-72@2x.png (144x144) generated
generating icon ios icon-60.png (60x60)…
icon ios icon-60@3x.png (180x180) generated
generating icon ios icon-50@2x.png (100x100)…
icon ios icon-60.png (60x60) generated
generating icon ios icon-50.png (50x50)…
icon ios icon-60@2x.png (120x120) generated
icon ios icon-40@3x.png (120x120) generated
generating icon ios icon-40@2x.png (80x80)…
icon ios icon-40@2x.png (80x80) generated
generating icon ios icon-40.png (40x40)…
icon ios icon-50@2x.png (100x100) generated
generating icon ios icon@2x.png (114x114)…
icon ios icon-50.png (50x50) generated
generating icon ios icon.png (57x57)…
icon ios icon-40.png (40x40) generated
generating icon android drawable-xxxhdpi-icon.png (192x192)…
icon ios icon@2x.png (114x114) generated
icon android drawable-xxhdpi-icon.png (144x144) generated
generating icon android drawable-xhdpi-icon.png (96x96)…
icon ios icon.png (57x57) generated
icon android drawable-hdpi-icon.png (72x72) generated
generating icon android drawable-mdpi-icon.png (48x48)…
icon android drawable-xxxhdpi-icon.png (192x192) generated
generating icon android drawable-ldpi-icon.png (36x36)…
icon android drawable-xhdpi-icon.png (96x96) generated
generating splash android drawable-port-xxxhdpi-screen.png (1280x1920)…
icon android drawable-mdpi-icon.png (48x48) generated
generating splash android drawable-port-xxhdpi-screen.png (960x1600)…
icon android drawable-ldpi-icon.png (36x36) generated
generating splash android drawable-port-xhdpi-screen.png (720x1280)…
splash android drawable-port-xxhdpi-screen.png (960x1600) generated
generating splash android drawable-port-hdpi-screen.png (480x800)…
splash android drawable-port-xhdpi-screen.png (720x1280) generated
generating splash android drawable-port-mdpi-screen.png (320x480)…
splash android drawable-port-xxxhdpi-screen.png (1280x1920) generated
generating splash android drawable-port-ldpi-screen.png (240x320)…
splash android drawable-port-hdpi-screen.png (480x800) generated
generating splash android drawable-land-xxxhdpi-screen.png (1920x1280)…
splash android drawable-port-mdpi-screen.png (320x480) generated
generating splash android drawable-land-xxhdpi-screen.png (1600x960)…
splash android drawable-port-ldpi-screen.png (240x320) generated
generating splash android drawable-land-xhdpi-screen.png (1280x720)…
splash android drawable-land-xxhdpi-screen.png (1600x960) generated
generating splash android drawable-land-hdpi-screen.png (800x480)…
splash android drawable-land-xxxhdpi-screen.png (1920x1280) generated
generating splash android drawable-land-mdpi-screen.png (480x320)…
splash android drawable-land-xhdpi-screen.png (1280x720) generated
generating splash android drawable-land-ldpi-screen.png (320x240)…
splash android drawable-land-hdpi-screen.png (800x480) generated
splash ios Default~iphone.png (320x480) generated
generating splash ios Default@2x~iphone.png (640x960)…
splash android drawable-land-ldpi-screen.png (320x240) generated
generating splash ios Default-Portrait~ipad.png (768x1024)…
splash android drawable-land-mdpi-screen.png (480x320) generated
generating splash ios Default-Portrait@~ipadpro.png (2048x2732)…
splash ios Default@2x~iphone.png (640x960) generated
generating splash ios Default-Portrait@2x~ipad.png (1536x2048)…
splash ios Default-Portrait~ipad.png (768x1024) generated
generating splash ios Default-Landscape~ipad.png (1024x768)…
splash ios Default-Portrait@~ipadpro.png (2048x2732) generated
generating splash ios Default-Landscape@~ipadpro.png (2732x2048)…
splash ios Default-Landscape~ipad.png (1024x768) generated
generating splash ios Default-Landscape@2x~ipad.png (2048x1536)…
splash ios Default-Portrait@2x~ipad.png (1536x2048) generated
generating splash ios Default-Landscape-736h.png (2208x1242)…
splash ios Default-Landscape@~ipadpro.png (2732x2048) generated
generating splash ios Default-736h.png (1242x2208)…
splash ios Default-Landscape@2x~ipad.png (2048x1536) generated
generating splash ios Default-667h.png (750x1334)…
splash ios Default-Landscape-736h.png (2208x1242) generated
generating splash ios Default-568h@2x~iphone.png (640x1136)…
splash ios Default-736h.png (1242x2208) generated
splash ios Default-667h.png (750x1334) generated
splash ios Default-568h@2x~iphone.png (640x1136) generated

Fails with error - Error: cmd: Command failed with exit code 1 Error output:
C:\Users\tanmay\Utrade\GMEX\utrade\web\utrade\static\utrade\HybridApp\ionic\platforms\android\build\intermediates\manifests\full\debug\AndroidManifest.xml:24:23-35: AAPT: No resource found that matches the given name (at ‘icon’ with value ‘@mipmap/icon’).


#2

The issue was with the version of android platform added.

I deleted the android folder from platfroms. And then removed the android platform and added again.
ionic platform remove android
ionic platfrom add android
ionic build android --prod

now it succeded.