LuckSiege / LuckSiege/PictureSelector

裁剪闪退

Open
#2,179 2 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

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yalantis.ucrop.UCropActivity}: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class androidx.appcompat.widget.Toolbar
`Caused by: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class androidx.appcompat.widget.Toolbar
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class androidx.appcompat.widget.Toolbar
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.appcompat.widget.Toolbar" on path:

版本 2.6 -2.7 都有这个问题,其他版本未尝试

依赖了 androidx.appcompat:appcompat:1.3.1
主题:Theme.AppCompat.DayNight.NoActionBar

网上的办法都试了,就很奇怪

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 at the UCropActivity launch and the Android layout inflation failure for androidx.appcompat.widget.Toolbar. Check the reported PictureSelector 2.6–2.7 versions, the androidx.appcompat:appcompat:1.3.1 dependency, and Theme.AppCompat.DayNight.NoActionBar; done means cropping opens without the reported crash.

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
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.