About .aia files

278 views
Skip to first unread message

Aous Karoui

unread,
Jan 15, 2016, 2:33:07 PM1/15/16
to App Inventor Open Source Development
Hi AppInventor Community,

I wanted to check the .aia files' content so I have unzipped them to look inside. However, when I zipped them again (with both winrar and winzip) in order to import them to AI2, it doesn't work. AI2 tells me that "
The selected project is not a project source file! Project source files are aia files". This probably means there is a problem with the .aia file. Is there a special process to recreate the right .aia format ?

Thank you for your help,

Cheers


Aous Karoui
PhD Student

LIUM - Laboratoire d'Informatique de l'Université du Maine
FRANCE

Jos Flores

unread,
Jan 15, 2016, 2:40:05 PM1/15/16
to app-inventor-open-source-dev
Hi Aous,

make sure you select the files needed and then zip them, instead of
zipping the folder those files are contained.

When the projects is uploaded, the system will look for the files, but
it if finds a folder, it won't know how to deal with it. Does that
make sense?

cheers,
José
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to app-inventor-open-so...@googlegroups.com.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

Abraham Getzler

unread,
Jan 15, 2016, 2:44:12 PM1/15/16
to app-inventor-o...@googlegroups.com
I have read reports that 7-zip puts them back together better.
ABG

--
ABG
(Personal emails from boards are auto-spam deleted)

Franklyn A Turbak

unread,
Jan 15, 2016, 2:51:30 PM1/15/16
to app-inventor-o...@googlegroups.com
On a Mac, the following works if you're connected to the directory holding the assets and src files: 

[~/test/DriftingThroughWellesleyTest]$ ls
assets                  src                     youngandroidproject

[~/test/DriftingThroughWellesleyTest]$ zip -r ../DriftingThroughWellesleyTest.aia assets src youngandroidproject

The resulting .aia file loads fine in App Inventor. 

The following transcript shows what the contents of the .aia file should look like. 

[~/test/DriftingThroughWellesleyTest]$ cd ..

[~/test]$ ls -al DriftingThroughWellesley.aia
-rw-r-----@ 1 fturbak  staff  3034983 Jan  1 20:44 DriftingThroughWellesley.aia

[~/test]$ unzip -l DriftingThroughWellesleyTest.aia
Archive:  DriftingThroughWellesleyTest.aia
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  01-15-16 14:37   assets/
     2836  09-28-15 21:29   assets/BlackRectangle.png
    91494  09-28-15 21:29   assets/deer.png
   963285  09-28-15 21:29   assets/grass.jpg
   452718  09-28-15 21:29   assets/lulu.png
   260268  09-28-15 21:29   assets/newpeter.png
    82447  09-28-15 21:29   assets/PeterPan.jpg
    87459  09-28-15 21:29   assets/racoon.png
    63704  09-28-15 21:29   assets/ScreenShot2015-09-21at9.52.48PM.png
   119206  09-28-15 21:29   assets/ScreenShot2015-09-21at9.57.51PM.png
   322019  09-28-15 21:29   assets/ScreenShot2015-09-25at11.06.01AM.png
   254766  09-28-15 21:29   assets/ScreenShot2015-09-27at11.48.36PM.png
    30356  09-28-15 21:29   assets/skunk.png
   218775  09-28-15 21:29   assets/Tower.png
   106878  09-28-15 21:29   assets/wellesleylogo.png
    43354  09-28-15 21:29   assets/Wendy.gif
        0  01-15-16 14:37   src/
        0  01-15-16 14:37   src/appinventor/
        0  01-15-16 14:37   src/appinventor/ai_tclark2/
        0  01-15-16 14:37   src/appinventor/ai_tclark2/MovingFinal/
     2459  09-28-15 21:29   src/appinventor/ai_tclark2/MovingFinal/Screen1.bky
     2933  09-28-15 21:29   src/appinventor/ai_tclark2/MovingFinal/Screen1.scm
        0  09-28-15 21:29   src/appinventor/ai_tclark2/MovingFinal/Screen1.yail
    53654  09-28-15 21:29   src/appinventor/ai_tclark2/MovingFinal/Screen2.bky
     1408  09-28-15 21:29   src/appinventor/ai_tclark2/MovingFinal/Screen2.scm
        0  09-28-15 21:29   src/appinventor/ai_tclark2/MovingFinal/Screen2.yail
        0  01-15-16 14:37   youngandroidproject/
      188  09-28-15 21:29   youngandroidproject/project.properties
 --------                   -------
  3160207                   28 files

- lyn -

Aous Karoui

unread,
Jan 18, 2016, 6:09:42 PM1/18/16
to App Inventor Open Source Development
I'm currently trying to zip them again with 7zip. However, there are too many options that can be specified before zipping. Could you please send me the report that's explaining that ? (or tell me where did you found it). I think when the right zipping options are selected, it may be work!

> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

Aous Karoui

unread,
Jan 18, 2016, 6:21:34 PM1/18/16
to App Inventor Open Source Development
Hi José,

When you said "the files needed", de you meant ".bky" and ".scm" files ? I tried to zip them and import them directly in AppInventor2, I got the same error message. I gathered also all the files that I found and zipped them directly to one file, then  I changed its extension to ".aia", but I got the same error message (bad format).
Do you know the files that the system will exactly look for ? Does their organization in the different sub-folders (e.g. "src", "assets" and "youngandroidproject") matters ?

Aous Karoui

unread,
Jan 18, 2016, 6:29:40 PM1/18/16
to App Inventor Open Source Development
Okay, it doesn't seems to be difficult on Mac. I'm using Windows unfortunately but I will look for Mac computer to try that. I think the commands are the same for Linux, so I will check it with that too. Thank you for your help !

> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.
--
ABG
(Personal emails from boards are auto-spam deleted)

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

Abraham Getzler

unread,
Jan 18, 2016, 6:51:29 PM1/18/16
to app-inventor-o...@googlegroups.com
I'm currently trying to zip them again with 7zip. However, there are too many options that can be specified before zipping. Could you please send me the report that's explaining that ? (or tell me where did you found it). I think when the right zipping options are selected, it may be work!



> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.
--
ABG
(Personal emails from boards are auto-spam deleted)

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

Franklyn A Turbak

unread,
Jan 18, 2016, 7:33:39 PM1/18/16
to app-inventor-o...@googlegroups.com
As far as I know, you want to zip (the recursive contents of) the three folders named "assets", "src", and "youngandroidproject", so that the contents of the .aia files looks like this: 

Aous Karoui

unread,
Jan 19, 2016, 9:53:28 AM1/19/16
to App Inventor Open Source Development
It finally worked ! I just had to edit the files directly on the 7zip browser then they've been saved automatically in the ".aia" format.
Thank you for your help.

Aous

> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.
--
ABG
(Personal emails from boards are auto-spam deleted)

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

Aous Karoui

unread,
Jan 21, 2016, 2:10:57 PM1/21/16
to App Inventor Open Source Development
I tried the same commands on Linux. It actually works ! Thank you very much !


> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.
--
ABG
(Personal emails from boards are auto-spam deleted)

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.



--
ABG
(Personal emails from boards are auto-spam deleted)

--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages