Runtime Error: The operation Create Card View cannot accept the arguments provided

I am working on a project using the Dynamic Card View feature in Kodular, and when I run the app, I get the following error message:

Runtime Error: The operation CreateCardView cannot accept the arguments: Card1, com.google.appinventor.component.runtime.VerticalScrollArrangement@28dcb7a, -1, 150

Blocks Used: I am creating a dynamic card using the Create Card View block and passing the ID using the join formula like “Card” + index, and the arrangement is Vertical_Scroll_Arrangement1.

The width is set to -1 and the height is set to 150.

Problem: The message indicates that the Create Card View block cannot accept these values.

The issue is likely related to either the ID, the arrangement name, or the dimension values used.

What I have already tried:

  1. I made sure the ID is unique and not duplicated.

  2. I verified that the arrangement name Vertical_Scroll_Arrangement1 is correct and matches the name on the screen.

  3. I changed the width to values like -2 or specific numbers, but the error still appears.

Question: Is there a known issue with this block when using these values? Do I need to make additional modifications to the IDs or the arrangement? How can I solve this problem to ensure the dynamic card is created correctly?


Use a HorizontalArrangement instead of VerticalScrollArrangement.

Try with “forEachNumber” instead of “eachItem” and set the variable index inside that then use the number consonant in each id of the components
Example

I tried these blocks but still get the same error message