I just done with developement of Android application so now i want to release. For release i am using ant command line tool to build a release version of my apk
.
我刚刚完成了Android应用程序的开发,所以现在我想发布。对于发布,我使用ant命令行工具来构建我的apk的发布版本。
I just executed the command ant release
and got this Errors
我刚刚执行了命令ant release并得到了这个错误
BUILD FAILED
/usr/src/android-sdk-linux/tools/ant/build.xml:679: The following error occurred while executing this line: /usr/src/android-sdk-linux/tools/ant/build.xml:692: Compile failed; see the compiler error output for details.BUILD FAILED /usr/src/android-sdk-linux/tools/ant/build.xml:679:执行此行时发生以下错误:/usr/src/android-sdk-linux/tools/ant/build.xml :692:编译失败;请参阅编译器错误输出以获取详细信
Apart of this i got lots of other errors like'
除此之外我还有很多其他的错误,比如'
[javac] /root/workspace/Unit-Talk/src/org/sipchat/sipua/ui/ConnectionService.java:19: package org.jivesoftware.smack.packet does not exist
[javac] import org.jivesoftware.smack.packet.Presence;[javac] /root/workspace/Unit-Talk/src/org/sipchat/sipua/ui/ConnectionService.java:19:package org.jivesoftware.smack.packet不存在[javac] import org.jivesoftware.smack.packet 。存在;
[javac] /root/workspace/Unit-Talk/src/org/sipchat/sipua/ui/Sipdroid.java:89: cannot find symbol
[javac] symbol : class PhoneNumber
[javac] location: class org.sipchat.sipua.ui.Sipdroid
[javac] public List invalidCases = new ArrayList();[javac] /root/workspace/Unit-Talk/src/org/sipchat/sipua/ui/Sipdroid.java:89:找不到符号[javac]符号:class PhoneNumber [javac] location:class org.sipchat.sipua。 ui.Sipdroid [javac] public List invalidCases = new ArrayList();
All these error points to the class of jar file. Even i added the jars in proguard-project.txt
所有这些错误都指向jar文件的类。甚至我在proguard-project.txt中添加了罐子
And yes if i am exporting the apk using eclipse then its working fine, i am not getting such errors. here is my proguard-project.txt file
是的如果我使用eclipse导出apk然后它工作正常,我没有得到这样的错误。这是我的proguard-project.txt文件
Thanks
1 个解决方案
#1
0
The error comes from javac, at compilation time (before ProGuard is even started). You should make sure you have the proper libraries in the libs directory of your project.
错误来自javac,在编译时(在ProGuard启动之前)。您应确保在项目的libs目录中具有正确的库。
#1
0
The error comes from javac, at compilation time (before ProGuard is even started). You should make sure you have the proper libraries in the libs directory of your project.
错误来自javac,在编译时(在ProGuard启动之前)。您应确保在项目的libs目录中具有正确的库。