并尝试用ant完成它..但它给了我错误.
taskdef class
com.androID.ant.setuptask cannot be
found
任何人都可以帮我解决我正在做的错误,或者为我提供一步一步的教程.
提前致谢…
解决方法 你需要将sdk.dir传递给ant,即ant -Dsdk.dir =< AndroID SDK的路径>您还需要指定七个左右的AndroID构建目标中的一个,因为默认构建目标是“帮助”.
如果您只是运行ant -Dsdk.dir =< AndroID SDK>路径,您将获得一些帮助输出,如下所示:
help: [echo] AndroID Ant Build. Available targets: [echo] help: displays this help. [echo] clean: Removes output files created by other targets. [echo] compile: Compiles project's .java files into .class files. [echo] deBUG: Builds the application and signs it with a deBUG key. [echo] release: Builds the application. The generated apk file must be [echo] signed before it is published. [echo] install: Installs/reinstalls the deBUG package onto a running [echo] emulator or device. [echo] If the application was prevIoUsly installed,the [echo] signatures must match. [echo] uninstall: Uninstalls the application from a running emulator or [echo] device.BUILD SUCCESSFulTotal time: 7 seconds
要构建APK,您必须指定调试或发布.
ant -Dsdk.dir =< AndroID SDK的路径>调试
总结以上是内存溢出为你收集整理的android – 从命令提示符创建apk文件全部内容,希望文章能够帮你解决android – 从命令提示符创建apk文件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)