I had the same error after updating the Android SDK to the latest build tools.
Tools \ ant \ build.xml script do not contain links to tools.
This can be solved by adding tools to the build.xml file and pointing to the correct path. For me, these were tools for building \ 22.0.1
Please compare and update the tool section in the build.xml file
<property name="android.tools.dir" location="${sdk.dir}/tools" /> <property name="android.platform.tools.dir" location="${sdk.dir}/platform-tools" /> <property name="android.buildtools.dir" location="${sdk.dir}/build-tools/22.0.1" /> <condition property="exe" value=".exe" else=""><os family="windows" /></condition> <condition property="bat" value=".bat" else=""><os family="windows" /></condition> <property name="adb" location="${android.platform.tools.dir}/adb${exe}" /> <property name="lint" location="${android.tools.dir}/lint${bat}" /> <property name="zipalign" location="${android.buildtools.dir}/zipalign${exe}" /> <property name="aidl" location="${android.platform.tools.dir}/aidl${exe}" /> <property name="aapt" location="${android.buildtools.dir}/aapt${exe}" /> <property name="dx" location="${android.buildtools.dir}/dx${bat}" /> <property name="renderscript" location="${android.buildtools.dir}/llvm-rs-cc${exe}"/> <property name="lint" location="${android.tools.dir}/lint${bat}" />
Thanks Alex for the tip!
source share