Unable to Open Project

I am unable to open or download my app project. The only thing that happens when I click the project I want to open is a loading message that disappears after a very brief moment, so I am not sure how to begin diagnosing this problem. Could I get some assistance with this? I really don't want to restart my entire project.

Thanks

  • How big is the app?
  • How many files are in the assets?
  • What file types?
  • Was the project imported from another builder?
  • Has the problem existed from the beginning? If not, since when?

This URL allows you to open AI2 to the Project List, without opening any project.
http://ai2.appinventor.mit.edu/?autoload=false
From that list, you can request Exports of Projects without trying to open them.
Upload the troublesome .aia here.

KingPong.aia (1.3 MB)
Here is the .aia file.
This project was not imported from another builder, and this is the only project I am experiencing this problem with.

I did two surgeries, the first unnecessary, as it turns out.

I used IrfanView to shrink the Logo.png by a factor of 10 by 10 = 100.

I set the Last Opened Screen to Screen1. It was set to Screen2, which does not exist.


That fixed the loading problem.

Did you apply surgery to this aia file?
KingPong.aia (68.2 KB)

1 Like

While I'm in your project, I see a very unusual way of using TinyDB:
image
You have 6 instances of TinyDB,
image
and you change their Namespaces all over the place, but you never store or retrieve any tags/values in them.

What were you thinking?

Thank you so much for the fix!

I am using the TinyDBs as variables that I am later concatenating and send to a microcontroller using bluetooth. This is my first ever project using this software, so if this is not the best way to do this I would appreciate the advice>

TinyDB is typically used for data persistence across Screen switching and across runs of the project.

The NameSpace is the XML file name used for storage of tags and values in each TinyDB instance.

Since you only have one Screen, and you are not accumulating data for subsequent analysis, you might as well use global variables.

(I notice you don't have a single global variable. Did you miss that chapter?)
http://www.appinventor.org/bookChapters/chapter16.pdf
from
http://www.appinventor.org/book2

1 Like

I notice you are sending data through BlueTooth, but not receiving any.

It might be a good idea for you to post your sketch code here too.

Thank you for the advice. That definitely seems better. I'll try to figure out the rest myself, but if I run into any other problems, I'll let you know!