'How can i solve this error, i don't understand what is happening?

enter image description here

how can i correct this code? tell me please, it is working perfectly before changing the simulator after that it is happening



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source