General

Does LG have any Android-Virtual-Device AVD images for their phones - there are crashes which only occurring on LG phones.
DenLan
LG phones which fail to load png images but rather try and load xml vectorDrawable which has a gradient fill and then crash.

Does LG have any Android-Virtual-Device AVD images for their phones - we have crashes only occurring on LG phones and need to test and resolve the problem. Crashes are reported on LG devices only, here as sample of some of the LG models, all are running 6.0.x

Model: RS988 Build: MMB29M OS: 6.0.1
Model: LGLS991 Build: MRA58K OS: 6.0
Model: LG-H631 Build: MRA58K OS: 6.0
Model: LGLS992 Build: MMB29M OS: 6.0.1

Bug in LG phones - They are loading drawable resources from the drawable-anydpi-v24 directory when the device OS is 6.0 which is API 23. The application should NEVER be loading ANY resources from a directory which has -V24 when the OS is 23.

Our APK has identical resources for the xml vector drawable as PNG in all of the standard density drawable directories.

----

Crash trace showing loading of wrong drawable "res/drawable-anydpi-v24/currently_selected_location.xml" and cause of crash is trying to process the gradient fill "invalid color state list tag gradient" when it should be loading res/drawable-XXXX/currently_selected_location.xml where XXXX is the density for the device.

Android Studio build chain is smart enough to generate the PNG image from the XML vector drawable because it contains a gradient fill which is only support as of API 24.


android.content.res.Resources$NotFoundException: File res/drawable-anydpi-v24/currently_selected_location.xml from drawable resource ID #0x7f0800b1
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2748)
at android.content.res.Resources.loadDrawable(Resources.java:2643)
at android.content.res.Resources.getDrawable(Resources.java:833)
at com.wsi.wxlib.utils.BitmapUtils.getBitmapFromVectorDrawable(BitmapUtils.java:135)
at com.wsi.wxlib.utils.BitmapUtils.getMapIconFromDrawable(BitmapUtils.java:153)
at com.wsi.android.weather.ui.fragment.WSIAppMapController.addPin(WSIAppMapController.java:300)
at com.wsi.android.weather.ui.fragment.WSIAppMapController.setMapLocation(WSIAppMapController.java:266)
at com.wsi.android.weather.ui.fragment.WSIAppMapController.onMapReady(WSIAppMapController.java:119)
at com.wsi.mapsdk.map.WSIMapView.onMapReady(WSIMapView.java:462)
at com.wsi.mapsdk.map.WSIMapImpl.onMapReady(WSIMapImpl.java:2096)
at com.mapbox.mapboxsdk.maps.MapView$MapCallback.onMapReady(MapView.java:946)
at com.mapbox.mapboxsdk.maps.MapView$MapCallback.access$1000(MapView.java:911)
at com.mapbox.mapboxsdk.maps.MapView$MapCallback$1.run(MapView.java:929)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5551)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-anydpi-v24/$currently_selected_location__0.xml from color state list resource ID #0x7f08000c
at android.content.res.Resources.loadColorStateListForCookie(Resources.java:2858)
at android.content.res.Resources.loadColorStateList(Resources.java:2807)
at android.content.res.TypedArray.getColor(TypedArray.java:439)
at android.graphics.drawable.VectorDrawable$VFullPath.updateStateFromTypedArray(VectorDrawable.java:1605)
at android.graphics.drawable.VectorDrawable$VFullPath.inflate(VectorDrawable.java:1584)
at android.graphics.drawable.VectorDrawable.inflateInternal(VectorDrawable.java:666)
at android.graphics.drawable.VectorDrawable.inflate(VectorDrawable.java:571)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1215)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1124)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2733)
... 19 more
Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #14: invalid color state list tag gradient
at android.content.res.ColorStateList.createFromXmlInner(ColorStateList.java:217)
at android.content.res.ColorStateList.createFromXml(ColorStateList.java:201)
at android.content.res.Resources.loadColorStateListForCookie(Resources.java:2854)
... 28 more
Attachments:

currently_selected_location.zip (Retention Period: 30 Days)

Posted on 26-Sep-2018
Navigation