You will need to make an gradlewexecutable that is in the folder platformsin your ion project along the following path
/Usersplatforms/android/gradlew
For MAC
sudo chmod 755 /Users/<your ionic project path>/platforms/android/gradlew
where chmod 755 means: you allow everyone to read and execute the file, and the owner of the file is allowed to write to the file. If you apply 755 to the directory, this means that everyone can go to it and get a list of its files.
source
share