java.lang.RuntimeException: Can't create handler inside thread Thread[Thread-10,5,main] that has not called Looper.prepare()[BUG]
Open
bug
- Dominant language
- Java
- Stars
- 730
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
**描述错误**
在主线程调用dialog显示报错
**复现方法**
重现行为的步骤:
1. 去“……”
2. 点击“……”
3. 向下滚动到“……”
4. 见错误
**预期行为**
对你期望发生的事情的清晰而简洁的描述。
**截图**
如果适用,添加截图来帮助解释你的问题。
**系统信息(请填写以下信息) : **
- 版本[例如Android P]
**设备(请填写以下信息) : **
- 设备: Redmi Note10Pro
- 组件版本[例如1.0.0]
**其他**
在此添加有关此问题的任何其他信息。
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue does not name any source files, tests, or entry points. Start by reproducing the dialog call on the main thread and trace the reported Looper error to the relevant dialog code. Done means the reported crash no longer occurs in the described scenario, with a regression check for dialog display.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100