运行不起求帮助
Closed this issue · 7 comments
直接运行 ant auto-release会出错,然后<exec dir="${auto.project.tmp.dir}" executable=“配置自己的ant程序路径”,修改了之后显示success了,但是没看到打好的包生成在哪里呢?谢谢。
使用android官方的 ant debug能打包吗?
要先了解官方打包,能通过,说明环境配好了,才能使用自动打包。
在 2014-03-04 14:48:33,marcoaros notifications@github.com 写道:
直接运行 ant auto-release会出错,然后<exec dir="${auto.project.tmp.dir}" executable=“配置自己的ant程序路径”,修改了之后显示success了,但是没看到打好的包生成在哪里呢?谢谢。
—
Reply to this email directly or view it on GitHub.
可以打包的,生成的文件在bin下面
2014年3月4日 下午3:04于 "sinkcup" notifications@github.com写道:
使用android官方的 ant debug能打包吗?
要先了解官方打包,能通过,说明环境配好了,才能使用自动打包。在 2014-03-04 14:48:33,marcoaros notifications@github.com 写道:
直接运行 ant auto-release会出错,然后<exec dir="${auto.project.tmp.dir}"
executable=“配置自己的ant程序路径”,修改了之后显示success了,但是没看到打好的包生成在哪里呢?谢谢。—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHub.
auto-release 报什么错呢? auto-debug 报错吗?
附件是,运行了这个命令之后的log文件
ant auto-release -Dpackage=com.example.ant.beta >log.txt
On Tue, Mar 4, 2014 at 5:44 PM, sinkcup notifications@github.com wrote:
auto-release 报什么错呢? auto-debug 报错吗?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-36607180
.
Best Wishes 4 u.(^_^)
My Tel:13880747157
My msn: ffabregas@hotmail.com
My QQ:50652281
Buildfile: D:\workspace\AntDemo\build.xml
auto-release:
-check-env:
[checkenv] Android SDK Tools Revision 22.0.0
[checkenv] Installed at D:\workspace\android-sdk-windows-4
-setup:
[echo] Project Name: MainActivity
[gettype] Project Type: Application
-pre-clean:
clean:
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on
-auto:
[delete] Deleting directory D:\workspace\AntDemoTmp
[copy] Copying 59 files to D:\workspace\AntDemoTmp
[propertyfile] Updating property file: D:\workspace\AntDemo\auto.prop
-change-package-name:
[propertyfile] Updating property file: D:\workspace\AntDemo\auto.prop
[echo] old package: io.github.sinkcup.ant
[echo] new package: com.example.ant.beta
-change-umeng-channel:
[propertyfile] Updating property file: D:\workspace\AntDemo\auto.prop
[echo] UMENG_CHANNEL : release
-change-version:
[exec] Buildfile: D:\workspace\AntDemoTmp\build.xml
[exec]
[exec] BUILD FAILED
[exec] D:\workspace\android-sdk-windows-4\tools\ant\build.xml:1106: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 3 of 3-byte UTF-8 sequence.
[exec] at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
[exec] at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:432)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1242)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:756)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:1040)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2953)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
[exec] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
[exec] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
[exec] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
[exec] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
[exec] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
[exec] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:468)
[exec] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:515)
[exec] at co
[exec] -set-mode-check:
[exec]
[exec] -set-release-mode:
[exec] m.android.ant.XPathTask.execute(XPathTask.java:78)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:597)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.Target.execute(Target.java:390)
[exec] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[exec] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[exec] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[exec] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[exec] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[exec] at org.apache.tools.ant.Main.runBuild(Main.java:809)
[exec] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[exec] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[exec] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[exec] --------------- linked to ------------------
[exec] javax.xml.xpath.XPathExpressionException
[exec] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:475)
[exec] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:515)
[exec] at com.android.ant.XPathTask.execute(XPathTask.java:78)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:597)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.Target.execute(Target.java:390)
[exec] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[exec] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[exec] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[exec] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[exec] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[exec] at org.apache.tools.ant.Main.runBuild(Main.java:809)
[exec] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[exec] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[exec] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[exec] Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 3 of 3-byte UTF-8 sequence.
[exec] at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
[exec] at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:432)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1242)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:756)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:1040)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2953)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
[exec] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
[exec] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
[exec] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
[exec] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
[exec] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
[exec] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
[exec] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:468)
[exec] ... 18 more
[exec]
[exec] Total time: 0 seconds
[echo] package: com.example.ant.beta
[echo] UMENG_CHANNEL : release
[echo] versionCode: 3
[echo] versionName: 1.2
BUILD SUCCESSFUL
Total time: 2 seconds
打包完成,apk会在上一级的 AntDemoTmp 的bin 目录里
你的工程我还是没有编译出apk文件,但是在我自己的工程可以打出apk包,还想请教个问题ant.project.name
这个变量怎么才可以修改成自己的设置?我在ant.properties文件里添加没有效果。
顺便问一下可以加一下你的qq么?我的是50652281
谢谢。
On Tue, Mar 4, 2014 at 9:29 PM, sinkcup notifications@github.com wrote:
打包完成,apk会在上一级的 AntDemoTmp 的bin 目录里
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-36623410
.
Best Wishes 4 u.(^_^)
My Tel:13880747157
My msn: ffabregas@hotmail.com
My QQ:50652281
这个项目打包失败的原因是自带了 build.xml ,我把它删掉了,就好了。
每个机器是要自动生成自己的 build.xml ,命令如下:
android update project -p . -s -t "android-19"