ant debug 出现的错误:build.xml:49 taskdef class com.android.ant.SetupTask cannot be found(zt)
2011-11-03 10:25
513 查看
用ant debug 生成android 的apk文件时候出现这样的错误:build.xml:49 taskdef class com.android.ant.SetupTask cannot be found ,
找到文件local.properties修改好其中的sdk.dir中的路径,
之后还需要到android sdk 中tools目录中用./android update project --target android-8(自己对应的平台) --path /home/hotcyy/projects/androidtest/android(项目路径含有AndroidManifest.xml),再用ant debug命令即可。
tips:ant版本需要是1.8
root@desktop:Tst# java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
root@desktop:Tst#
root@desktop:Tst# ant -version
Apache Ant version 1.8.0 compiled on April 9 2010
root@desktop:Tst#
找到文件local.properties修改好其中的sdk.dir中的路径,
之后还需要到android sdk 中tools目录中用./android update project --target android-8(自己对应的平台) --path /home/hotcyy/projects/androidtest/android(项目路径含有AndroidManifest.xml),再用ant debug命令即可。
tips:ant版本需要是1.8
root@desktop:Tst# java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
root@desktop:Tst#
root@desktop:Tst# ant -version
Apache Ant version 1.8.0 compiled on April 9 2010
root@desktop:Tst#
相关文章推荐
- ant debug 出现的错误:build.xml:49 taskdef class com.android.ant.SetupTask cannot be found
- ant编译android程序时报错,build.xml:49: taskdef class com.android.ant.SetupTask cannot be found
- taskdef class com.android.ant.SetupTask cannot be found using the classloader AntClassLoader
- taskdef class com.android.ant.NewSetupTask cannot be found
- Android ADT 升级后 tools\ant\build.xml:828: taskdef class proguard.ant.ProGuardTask cannot be found
- Ant-JMS Exception: taskdef class weblogic.ant.taskdefs.management.WLConfig cannot be found
- Ant-JMS Exception: taskdef class weblogic.ant.taskdefs.management.WLConfig cannot be found
- 【ANT】taskdef class org.programmerplanet.ant.taskdefs.jmeter.JMeterTask cannot be found
- 【ANT】taskdef class org.programmerplanet.ant.taskdefs.jmeter.JMeterTask cannot be found using the cla
- Ant taskdef class net.sf.antcontrib.logic.ForEach cannot be found
- taskdef class org.apache.catalina.ant.InstallTask cannot be found!
- cordova android ant 打包出现 build.xml:694: ${aapt}错误
- Struts2中导入外部xml文件出现Included file cannot be found错误!
- taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found解决办法
- 安卓出现错误: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText
- cocos2dx 编译错误 BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following
- Caused by: java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be ope
- java.io.FileNotFoundException: class path resource [XXXXX.xml] cannot be opened
- 出现这个错误“ java.lang.ClassNotFoundException: com.mysql.jdbc.Driver”
- Android工程编译错误:The project cannot be built until build path errors are resolved