Hello everybody,
Recently I was planning to work on a new tool for App Inventor and other distros, for testing before working on the project itself I downloaded an aia file TicTacToe.aia, and renamed it to TicTacToe.zip and extracted the zip file. Then I renamed the folder and compressed it to another zip file TicTac.zip and then again renamed it to TicTac.aia, when I tried to import it I got this error
Selected project is not a project source file! Project source files are aia files
What I personally feel about the reason behind this behaviour is metadata loss while renaming the files, because when I again renamed the original TicTacToe.zip to TicTacToe.aia then it was imported perfectly.
Now I would like to know the issue behind this issue.
There are multiple compression formats out there, I anticipate App Inventor expects a specific format.
Quickly ran a python script to check compressor format applied on .aia files. It uses "no compression" format. So probably the system expects "no compression" format, but you could be given it a "compressed" format.
So when you try to recreate the .aia file, try with no compression format.
I appreciate your point @ABG , but as I told I'm working on making a new tool for the community(users) hence I need to do it from coding only(Dart Language), hence I believe 7zip isn't a better option particularly in my case...
But if I rename that to zip back I didn't get a subfolder like you got pick. But still to confirm wait for a little I'll try checking and report it back
Ummm, that's also a fine option but I'm in doubt that would dart libraries like archive will be able to extract that contents of the aia, won't they report some errors
Actually when I renamed my original aia's extension to .zip then I extracted it and changed the name of the extracted folder to xyz from abc and after again compressing it to .zip it made a subfolder of the same name inside the zip which was basically the aia's source. The issue is solved by compressing the subfolders like assets, src and youngandroidproject not the parent folder