This repository was archived by the owner on Oct 18, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 514
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
[Bug]: Application crash when deleting the resource name on a designer text field #873
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
AndroidIDE crashed when I was deleting the resource name (text field for "android:src" property) on designer.
What's the expected behavior?
AndroidIDE should ignore such exception.
What version of AndroidIDE you're using?
v2.3.0 (debug builds)
Relevant log output
AndroidIDE crash report
Manufacturer: Xiaomi
Device: 2207117BPG
ABI: arm64-v8a
SDK version: 31
App version: v2.4.0-beta (240)
Stacktrace:
java.lang.IllegalArgumentException: DRAWABLE resource 'battery_charge_backgrou' not found
at com.itsaky.androidide.inflater.internal.utils.BasicParseUtilsKt.resolveResourceReference(basicParseUtils.kt:5)
at com.itsaky.androidide.inflater.internal.utils.BasicParseUtilsKt.parseReference(basicParseUtils.kt:381)
at com.itsaky.androidide.inflater.AbstractParser.parseDrawable(AbstractParser.kt:10)
at com.itsaky.androidide.inflater.AbstractParser.parseDrawable$default(AbstractParser.kt:15)
at com.itsaky.androidide.inflater.internal.adapters.ImageViewAdapter$createAttrHandlers$8.invoke(ImageViewAdapter.kt:21)
at com.itsaky.androidide.inflater.IViewAdapter.applyInternal(IViewAdapter.kt:20)
at com.itsaky.androidide.inflater.IViewAdapter$apply$1.invoke(IViewAdapter.kt:10)
at com.itsaky.androidide.inflater.IViewAdapter.doApply(IViewAdapter.kt:62)
at com.itsaky.androidide.inflater.IViewAdapter.apply(IViewAdapter.kt:16)
at com.itsaky.androidide.inflater.internal.ViewImpl.applyAttribute(ViewImpl.kt:40)
at com.itsaky.androidide.uidesigner.fragments.AttrValueEditorFragment$showAttrInfo$1$2.invoke(AttrValueEditorFragment.kt:65)
at com.itsaky.androidide.uidesigner.utils.ValueCompletionProvider$afterTextChanged$1$$ExternalSyntheticLambda0.run(R8$$SyntheticClass:17)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8283)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1077)Duplicate issues
- This issue has not been reported yet.
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working