Dynamic component

com.google.appinventor.components.runtime.Notifier cannot be cast to com.google.appinventor.components.runtime.AndroidViewComponent
Note: You will not see another error reported for 5 seconds.

for each id in IDs list
if DynamicComponents.IsComponent(id) = true
call DynamicComponents.Remove id

1 Like

your error is no where related to this block. When do you get such error? pls post relevant blocks

do you want to help if I want to send my aia file

The operation IsDynamic cannot accept the arguments: , [“Space8_copy_copy2”]
Note: You will not see another error reported for 5 seconds.

I use this block to display the schema but Vertical_Scroll_Arragment2 is not included in the schema button close screen I made to delete after use.

You cannot use like this to check up the id as IsDynamic… Simply use for each items in the list Used dynamic component id, remove the dynamic components get id get item alone

com.google.appinventor.components.runtime.Notifier cannot be cast to com.google.appinventor.components.runtime.AndroidViewComponent
Note: You will not see another error reported for 5 seconds.

please give the block I don’t understand

Do you get the above error on clicking thus close screen button? Do you use anywhere notifier to alert?

Your above block to remove the dc is correct

yes error when click close_screen button, I added any notifier in the project

it seems to be an error because the notifier is not a visual component

Show the block


But i fine no block which connected with notifier

1 Like

CONTROL_MC.aia (1.1 MB)
Please do me a favor if you don’t mind

you didnot mentioned the screen name

andon_copy

you are not creating notifier dynamically then what are you doing here? why do you add the dynamic componet id to this notifier? here you can add only notifier component

also native button triggers with when any button clicked event also. You are having logical errors. On click you are removing all the dynamic componets id but then why are you willing to show this dynamically created arrangement to show in notifier custom dialogue?

I made it so that the value is carried over