Skip to content
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 Crash Android 4.4 (KiKat) #82

Closed
OPunktSchmidt opened this issue May 4, 2020 · 2 comments
Closed

UCropActivity Crash Android 4.4 (KiKat) #82

OPunktSchmidt opened this issue May 4, 2020 · 2 comments
Milestone

Comments

@OPunktSchmidt
Copy link

OPunktSchmidt commented May 4, 2020

I'm not able to take a photo or pick a image from the gallery. Every time it crashes before the the Crop-Activity shows up. The camera opens but after the photo is taken the App crashes and no Crop-Activity shows up.

Android Version: 4.4
Device: x86 Emulator

Logs:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{opunktschmidt.myapp/com.yalantis.ucrop.UCropActivity}: android.content.res.Resources$NotFoundException: File res/drawable/ucrop_ic_cross.xml from drawable resource ID #0x7f0800ce at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(NativeStart.java)

Caused by android.content.res.Resources$NotFoundException: File res/drawable/ucrop_ic_cross.xml from drawable resource ID #0x7f0800ce
       at android.content.res.Resources.loadDrawable(Resources.java:2101)
       at android.content.res.Resources.getDrawable(Resources.java:700)
       at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:456)
       at com.yalantis.ucrop.UCropActivity.setupAppBar(UCropActivity.java:346)
       at com.yalantis.ucrop.UCropActivity.setupViews(UCropActivity.java:297)
       at com.yalantis.ucrop.UCropActivity.onCreate(UCropActivity.java:126)
       at android.app.Activity.performCreate(Activity.java:5231)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
       at android.app.ActivityThread.access$800(ActivityThread.java:135)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5017)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
       at dalvik.system.NativeStart.main(NativeStart.java)

Caused by org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933) at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877) at android.content.res.Resources.loadDrawable(Resources.java:2097) at android.content.res.Resources.getDrawable(Resources.java:700) at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:456) at com.yalantis.ucrop.UCropActivity.setupAppBar(UCropActivity.java:346) at com.yalantis.ucrop.UCropActivity.setupViews(UCropActivity.java:297) at com.yalantis.ucrop.UCropActivity.onCreate(UCropActivity.java:126) at android.app.Activity.performCreate(Activity.java:5231) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(NativeStart.java)

@ArielFarias
Copy link

ArielFarias commented May 4, 2020

Same here! There is an related issue in Yalantis/uCrop#529, which was closed.

@Dhaval2404
Copy link
Owner

The issue has been resolved in uCrop v2.2.5. These changes will be reflected in v2.0. Thank you!

Upgrade uCrop to v2.2.5

@Dhaval2404 Dhaval2404 modified the milestones: v2.0, v1.7.2 Jul 12, 2020
Dhaval2404 added a commit that referenced this issue Jul 13, 2020
Upgrade uCrop to v2.2.5

#82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants