Blankj / Blankj/AndroidUtilCode

AdaptScreenUtils ClassCastException

Open
#1,648 0 comments 0 reactions 1 assignee Claimed by @Blankj View on GitHub
bug
Dominant language
Java
Stars
33.6k
Forks
10.6k
PR merge metrics
No merged PRs in 30d

Description

## 描述 Bug

简洁地描述下 Bug。

- AndroidUtilCode 的版本:utilcode:1.30.0
- 出现 Bug 的设备型号:OPPO R7s Plus
- 设备的 Android 版本:5.1.1

## 异常堆栈

```
AdaptScreenUtils: getMetricsFromField: java.lang.ClassCastException: java.lang.Object cannot be cast to android.util.DisplayMetrics
```
-->

```
put the stack of crash here
```
![image](https://user-images.githubusercontent.com/26593441/170166512-c159068b-f0ad-43ae-a411-8f96ba5c939a.png)

## 截图

![image](https://user-images.githubusercontent.com/26593441/170166549-ee9864b0-dd67-47f4-8d2a-e0f796e22a21.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.