ant debug 出现的错误:build.xml:49 taskdef class com.android.ant.SetupTask cannot be found
2020-06-29 04:51
1266 查看
用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
转载注明原文出处,谢谢!
转载于:https://www.cnblogs.com/watchtower/archive/2011/08/05/2128764.html
相关文章推荐
- ant debug 出现的错误:build.xml:49 taskdef class com.android.ant.SetupTask cannot be found(zt)
- 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
- Android ADT 升级后 tools\ant\build.xml:828: taskdef class proguard.ant.ProGuardTask 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
- 【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
- 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
- taskdef class org.apache.catalina.ant.InstallTask cannot be found!
- Struts2中导入外部xml文件出现Included file cannot be found错误!
- cordova android ant 打包出现 build.xml:694: ${aapt}错误
- maven项目中出现 java.io.FileNotFoundException: class path resource [**.xml] cannot be open
- taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found解决办法
- 安卓出现错误: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText
- 报com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class错误
- MarteEngine: Win下执行ant脚本build.xml中的exej目标时出现的错误
- java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not