OS version: Ubuntu 14.04 LTE 64 Bit
Java JRE/JDK version: Oracle JDK 1.8.0_11
Project directory is on a NTFS based drive.
Whenever I try to clean my
This fixed my problem.
Thanks to Gal's answer (https://stackoverflow.com/a/39904628/2870404).
In windows, using Windows file explorer,
right-click on the directory, click properties on the context menu that will appear, then uncheck the "Read Only" attribute. After that, click the "Apply" to apply changes.
I had the same problem.
You need to go to the source file directly. Close the studio and go to the path the issue is located at and delete the folder there.
Clean project from Android Studio Terminal using this command 'gradlew clean'.
1) first run cordova clean cammand
ionic cordova clean
2)After that run build command
ionic cordova build android
Thanks to Gal's answer (https://stackoverflow.com/a/39904628/2870404).
In windows, using Windows file explorer,
none of above answers didn't work for me, but change permistion works:
chown user:staff ../project_dir
find ../project_dir -type d -exec chmod 775 {} \;
find ../project_dir -type f -exec chmod 664 {} \;