I have created an app for my IOT project by using MIT app inventor, it works fine In AI companion , but when I installed its apk file in my phone then the app is not Starting

The error message says you are asking for item 3 of a list with only two items.

It even shows the list, with its only two items.

Where have I seen a place where you ask for item 3 of a list?

P.S. This is what happens when people try to select items from a list without first testing if the list is long enough:

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia

P.P.S. Here is a tool you can use to explore the contents of your FireBase DB: