Don't have permission to write a file or create a directory When you run the generate.ph script, it will create a “.tmp” directory inside the directory where it was run. This directory will be deleted after the script ends and is used to create some application files – the icons for example.
You have to give permission it to write. The simplest way is to make the directory where the script is, of type +W, or in a more restrictive way, only writable to the user who runs the script.
The script will also create the “icons/” directory in your repository root directory – e.g. in your web server root directory /var/www/http.
As before, you have to make sure it has permission to write in there.
aapt not found The Google/Android tool aapt must be in the same directory as the generate.ph script.