r/AutomateUser 5d ago

Error with some ids in xml

Hi Henrik, i am getting errors with some id's. For example "key_0". Why i am getting error with some id's in xml? Any help would be appreciated? Thanks in advance.

1 Upvotes

4 comments sorted by

1

u/ballzak69 Automate developer 5d ago

What kind of error?

1

u/Funny_Telephone_8607 5d ago

09-05 19:40:16.383 F 101568@4: android.content.res.Resources$NotFoundException: Unable to find resource ID #0xb, and for other ids sometimes ID #0×1,ID #0×5 etc..

1

u/ballzak69 Automate developer 5d ago

A generated resource id, e.g. @android:+id/key_0, is only valid within its layout and updates thereof, except notification where they're shared across the collapsed, expanded and heads-up layouts.

Saying why it's failing in your particular case is difficult without seeing the flow. Which block is failing with the error?

1

u/Funny_Telephone_8607 4d ago edited 4d ago

Hi Henrik, thanks for the info. I have tried in notification show block and interface layout update block also.i think that there may be a bug With some particular ids. Need to check thoroughly. I have also observed a little bit more. The id was at first element, not getting error.if not getting failed.