-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UCropActivity.setupViews android.content.res.Resources$NotFoundException - Unable to find resource ID #<address> #875
Comments
I am sorry, but I can't find the code which causes the crash. Can you upgrade to a newer lib version or explain more detailed what you have done before? Independently of this error, I guess nobody with write access updates this library anymore. (#651 (comment)) I made a fork which is working well for Android 13. In addition to the small updates, I translated most of the code to kotlin. |
UCropActivity.setupViews Model:Nexus 5X |
is this repo live or not? |
UCropActivity.setupViews Device Brand:Samsung Model:Galaxy F14 5G Orientation:Portrait RAM free: 1.34 GB Disk free: 88.28 GB Operating System Version:Android 14 Orientation:Portrait Rooted:No This crash occurred only once and don't know whether it'll be reproduced. I am using the uCrop latest version 2.2.8. Any ideas to solve this issue? |
I am facing same issue in an android app using ucrop version 2.2.9 Crashlytics - Stack traceApplication: com.tejgyan.happythoughtsPlatform: androidVersion: 2.0 (12)Issue: cda059e4bb0cbfcc26ec241d4d4d2295Session: 67268FEA02F8000118DAC6F1C1AFF8EF_DNE_0_v2Date: Sun Nov 03 2024 02:17:58 GMT+0530 (India Standard Time)Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tejgyan.happythoughts/com.yalantis.ucrop.UCropActivity}: android.view.InflateException: Binary XML file line #29: Binary XML file line #49: Error inflating class ImageView Caused by android.view.InflateException: Binary XML file line #29: Binary XML file line #49: Error inflating class ImageView Caused by android.view.InflateException: Binary XML file line #49: Error inflating class ImageView Caused by android.content.res.Resources$NotFoundException: Drawable (missing name) with resource ID #0x7f0801f6 Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f0801f6 Firebase Background Thread #0: Okio Watchdog: process reaper: ScionFrontendApi: Measurement Worker: Firebase Blocking Thread #2: Firebase Background Thread #1: Firebase Blocking Thread #0: CleanupReference: Firebase-Messaging-Task: Firebase-Messaging-Topics-Io: ExoPlayer:DownloadManager: ReferenceQueueDaemon: Firebase Background Thread #3: queued-work-looper: TAG: Firebase-Messaging-Intent-Handle: Firebase-Messaging-Init: pool-10-thread-1: FinalizerDaemon: DefaultDispatcher-worker-6: |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f08021a
What is the expected behavior?
No exception
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Not sure how to reproduce. The cause is from user device is from Crashlytics
Please attach any image files, URL and
stack trace
that can be used to reproduce the bug.Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f08021a at android.content.res.ResourcesImpl.getResourceName(ResourcesImpl.java:253) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:760) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:630) at android.content.res.Resources.loadDrawable(Resources.java:886) at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:953) at android.content.res.TypedArray.getDrawable(TypedArray.java:928) at android.content.res.XResources$XTypedArray.getDrawable(XResources.java:1363) at android.widget.ImageView.<init>(ImageView.java:188) at android.widget.ImageView.<init>(ImageView.java:171) at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:3) at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:1) at androidx.appcompat.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:8) at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:8) at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:8) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:772) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.rInflate(LayoutInflater.java:866) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:995) at android.view.LayoutInflater.rInflate(LayoutInflater.java:859) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.rInflate(LayoutInflater.java:866) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at com.yalantis.ucrop.UCropActivity.setupViews(UCropActivity.java:174) at com.yalantis.ucrop.UCropActivity.onCreate(UCropActivity.java:12) at android.app.Activity.performCreate(Activity.java:7009) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Which versions of uCrop, and which Android API versions are affected by this issue? Did this work in previous versions of uCrop?
Lib version: 2.2.6
Android version: 8; 90% and 10; 10%
Device: Nexus 5X
The text was updated successfully, but these errors were encountered: