2017年05月份,发现我跟新android SDK Tools 为最新版后不能进行ant打包了,之前都是可以的,打包的时候报的错误是:
[taskdef] Could not load definitions from resource anttasks.properties. It could not be found.
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
-set-mode-check:
-set-debug-files:
-check-env:
BUILD FAILED
C:\Users\Donkfather\Desktop\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:392: Problem: failed to create task or type checkenv
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
解决方法找了半天没找到对应方法,最后实在只好回到之前版本的Android SDK Tools,我这里作个记录,上传到了有道云笔记,下载地址为:http://note.youdao.com/noteshare?id=e2ee0c3ed0f657b45ca63a29b022bdfa&sub=9ADA30E7FBE54D82956FE665D44764BF