Open seanlip opened 4 days ago
Not entirely sure which one, but this has to do do with an attribute that expects a dimension value such as layout_width, layout_height, margin, padding.
Looking at the profile_chooser_fragment.xml
, any recent dimesion changes have been related to changing the namespaces of the MarginBindingAdapters
used in landscape and tablet layouts of this screen. I would start investigations there.
Describe the bug
We are seeing this crash in Crashlytics after the release of 0.13-beta.
This issue has 2 crash events affecting 1 user in the span of 1 day.
Full stacktrace
``` Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.oppia.android/org.oppia.android.app.profile.ProfileChooserActivity}: android.view.InflateException: Binary XML file line #52: Can't convert value at index 4 to dimension: type=0x1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Caused by android.view.InflateException: Binary XML file line #52: Can't convert value at index 4 to dimension: type=0x1 Caused by java.lang.UnsupportedOperationException: Can't convert value at index 4 to dimension: type=0x1 at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:730) at android.content.res.XResources$XTypedArray.getDimensionPixelSize(XResources.java:1342) at android.view.ViewGroup$MarginLayoutParams.Steps To Reproduce
Not sure; this happened in production.
Expected Behavior
The crash should not happen.
Screenshots/Videos
No response
What device/emulator are you using?
Google Nexus 5X
Which Android version is your device/emulator running?
Android 8.1.0
Which version of the Oppia Android app are you using?
0.13-beta-dcde7b359e
Additional Context
No response