LuckSiege / LuckSiege/PictureSelector

Error inflating class ImageView

Open
#2,757 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## Current use version?
#### 当前使用的版本是多少?

```
v3.11.1
```

## Will this problem occur in demo?
#### Demo能否复现这问题?

```
不能
```

## Describe the problem or provide an error log?
#### 描述问题或提供错误log?

```
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ayome.sg/com.yalantis.ucrop.UCropActivity}: android.view.InflateException: Binary XML file line #27 in com.ayome.sg:layout/ucrop_controls: Binary XML file line #46 in com.ayome.sg:layout/ucrop_layout_rotate_wheel: Error inflating class ImageView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4060)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4247)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2613)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8676)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
```

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.

Research direction

Start by inspecting the Android XML layouts ucrop_controls and ucrop_layout_rotate_wheel at the reported lines, then trace how UCropActivity inflates them. Reproduce the ImageView inflation failure on the affected environment if possible; done means UCropActivity starts without this crash and the failure is covered by an appropriate verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.