Blankj / Blankj/AndroidUtilCode

AdaptScreenUtils ClassCastException

Open
#1,648 0 comments 0 reactions 1 assignee View on GitHub

@Blankj is already working on this.

Since May 25, 2022.

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

截图

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.