The operation make a (key:value) pair in a list cannot accept the arguments (MacOS Emulator)

There is no way I can create a dictionary. It tells me this no matter how I try it.
In this example, I try to add a dictionary to a list upon clicking a button.

But I also tried simply having a global variable initialized as a dictionary, and it gives me errors too. I looked around and a lot of people seem to be having the same problem.

Any clues? why such a simple operation fails? I'm using the Android emulator on my Mac

Not quite sure what your problem is:

Did you refresh the companion app after creating the users variable, so that it is initialised?

Which people ?

hi,

yes I refreshed it.

the problem occurs when using the Emulator in Mac OS. I tried runing the app using the "AI Companion" in my phone, and there it works fine. seems like the Mac OS emulator has some trouble creating dictionaries...

(I googled it and saw a lot of people refering the same problem...)

Well, I guess you have your answer then
This problem then not is an App Inventor problem

Taifun

Thanks for your answer, however... I am using the official Mac OS emulator from the App Inventor website. This is the official app, how can it be that I'm running into this problem? Certainly I can't be the only one using the Emulator on Mac OS...

Try

from

Also, check if your emulator came with the most up to date Companion version.
Emulators don't usually get updated and repackaged with new Companions.

Did you update the companion app in the emulator? It may not have a new enough version of the companion to use dictionaries. After connecting, use the Help > Update the Companion menu item to start the update process.

Hi all and thanks for the answers.
I'm using an Intel-based mac OS. I don't know how to update the companion app in the emulator. There is no "Help" menu in it

The update can be initiated from the App Inventor editor once you've connected to the emulator. See the screenshot above as a reference.