Error in renaming screens

148 views
Skip to first unread message

Jim Ray

unread,
Jun 8, 2014, 3:19:58 PM6/8/14
to app-inventor-de...@googlegroups.com
I used the example giving for renaming the screens and when I go to import my AIA I get the following error.

"The selected project is not a project source file! Project source files are aia files."

What I did was the following

Renamed, screen1.bky to screen2.bky
Edit the files and renamed screen1 to screen2

Then zipped the file and renamed it back to AIA.

Did I mess something up?

Thanks

Jim

Scott Ferguson

unread,
Jun 11, 2014, 6:54:49 AM6/11/14
to
Yes and no. Although my documentation may not state this fact, every app must have a Screen1 by that name.

There are two options:

Starting from a fresh copy of the project:
Make a copy of Screen1.scm and Screen1.bky files, do a replace on any references in them from Screen1 to Screen2' (as you did), then save those copies back in the archive.
Don't delete the original Screen1.scm and Screen1.bky files in the archive.
Then rename the archive back to an aia file and open it in App Inventor.
You can deleted your components and blocks from Screen1 if you wish now.

Fixing your corrupted project:
If your now corrupted file is your only copy of the project, then open it and copy your Screen2 files to Screen1; change their references back to Screen1 and drop them back in the archive. Rename the project with an aia extension if necessary. The project should now open.
---
Scott
Reply all
Reply to author
Forward
0 new messages