The problem is not with anttasks.properties or emma_ant.properties (at least for me). I fixed it differently. My build.xml target had the following lines
<property file="local.properties"/> <property file="project.properties"/> <property file="ant.properties"/>
Curiously, local.properties not in the build.xml folder, while the other two were present. Fortunately, I already had this because of my previous attempt with Android Studio, i.e. In StudioProjects/<my project>/local.properties . In other words, it is automatically created by Android Studio. If you do not have it, this is its content:
#
So, you can create it yourself by specifying the paths of your SDK and, possibly, NDK.
Hope this helps.
user8 source share