Problem :
Execute failed: java.io.IOException: Cannot run program "dx": java.io.IOException: error=2, No such file or directory
Solution 1:
export PATH={$PATH}:/home/jyui/andorid/sdk/build-tools/android-4.2.2/
Old Solution : Sometimes it's not working
- Make some symbolic links like below:
~/android/sdk/platform-tools$ ln -s /home/jyui/andorid/sdk/build-tools/android-4.2.2/aapt aapt
~/android/sdk/platform-tools$ ln -s /home/jyui/android/sdk/build-tools/android-4.2.2/aidl aidl
~/android/sdk/platform-tools$ ln -s /home/jyui/android/sdk/build-tools/android-4.2.2/dx dx
~/android/sdk/platform-tools$ ln -s /home/jyui/android/sdk/build-tools/android-4.2.2/lib lib