开发者

NoSuchMethodError using Ant

I am new to Android. I create a HelloAndroid Project using command-line(not Eclipse). /Runs in Eclipse/ Then I used Ant to build my HelloAndroid Project. But while building it showed me the below output.

-resource-src:
     [echo] Generating R.java / Manifest.java from the resources...

-aidl:
     [echo] Compiling aidl files into Java classes...

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.tools.ant.types.FileSet.iterator()Ljava/
util/Iter开发者_如何学运维ator;

Total time: 1 second

How can I fix this?


I found solution on this.

It was happened because of ant/JAVA_HOME paths. SO I removed all java and ant paths and recreate them. Now its working greatly.

Thkns

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜