I have problem when building with gradle. It says that aapt doesn't exist, but aapt exists and have chmod 0777. Code is ok, building with Ant works.
I give output: :mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeDebugResources'.
> /home/nikodem/Workshop/PlanLekcji/res/drawable-mdpi/pt.png: Error: Cannot run program "/home/nikodem/Programy/AndroidSDK/build-tools/21.1.2/aapt": error=2, No such file or directory
/home/nikodem/Workshop/PlanLekcji/res/drawable-mdpi/pt.png is valid path to picture. /home/nikodem/Programy/AndroidSDK/build-tools/21.1.2/aapt is valid path to aapt.