breautek commented on issue #1559:
URL: 
https://github.com/apache/cordova-android/issues/1559#issuecomment-1467085838

   > @breautek I noticed you mentioned an 'ic_cdv_splashscreen.xml' file in a 
similar 
[issue](https://github.com/apache/cordova-android/issues/1565#issuecomment-1460415480).
 I verified this for my project and I do have the resource mentioned in the 
proper path and I still seem to get this crash. Any thoughts on what else I 
could try?
   
   Personally I don't use xml/vectors, instead I used a rasterized PNG. It's 
not the recommended approach, but it seems to be easier to support/maintain. 
This has the limitation of not being animatable, but if that's not a problem 
then it's something you can try. When using PNGs, you'll need to render it at 
the highest resolution you intend to support (so for xxxhdpi, you need scale 
the image x4 of the recommended DP value). The smaller devices will scale down 
rastered images appropriately assuming the aspect ratio is correct, but if a 
device needs to upscale, it's not going to look right.
   
   > @breautek Cloud you please help me to resolve above the issue
   Android 12 & 13 is working fine but lower android versions like 11, 10, 9, 8 
& below have this same issue occurred
   
   One reason XML vectors may not work, particularly if the XML resource is an 
SVG is Android doesn't support the full SVG spec.
   
   In fact, I believe you're really suppose to use the [Vector Asset 
Studio](https://developer.android.com/studio/write/vector-asset-studio#about) 
(a tool inside Android Studio... see gif) to convert an SVG to to an Android 
Vector Drawable (AVD).
   
   [Screencast from 2023-03-13 07:52:08 
PM.webm](https://user-images.githubusercontent.com/11200662/224850194-988b6799-7d31-46a5-9ff3-75df7b63bac7.webm)
   
   If you can provide me a [sample reproduction 
repo](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md)
 or provide me the assets used then I can take deeper look.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to