现在的位置: 首页 > 综合 > 正文

dos用cmd命令通过build.xml编译android工程的一个错误。

2017年11月11日 ⁄ 综合 ⁄ 共 362字 ⁄ 字号 评论关闭

Could not load definitions from resource anttasks.properties. It could not be found.

Could not load definitions from resource emma_ant.properties.It could not be found.

Problem: **failed to create task or type checkenv**Cause: The name is undefined.

 

 

如果cmd打印出与上面相似的错误,错误根源是android SDK的路径没有对

 

 

修改办法:打开local.properties这个文件,修改里面最后一行为sdk.dir=D:\\android\\sdk\\sdk(格式是这样的,具体情况看你的SDK路径在哪里)

 

如果帮助了你,不用谢,哈哈哈大笑

抱歉!评论已关闭.