自己写的java代码有需要依赖第三方jar包。我按照惯例把jar包放到android目录中的libs文件夹后开始编译apk。于是出现了下面的错误
[javac] Compiling 7 source files to C:\Users\Administrator\Desktop\bu\android-build\bin\classes
[javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
[javac] 注: C:\Users\Administrator\Desktop\bu\android-build\src\org\qtproject\qt5\android\bindings\QtActivity.java使用或覆盖了已过时的 API。
[javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[javac] 3 个警告
BUILD FAILED
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:283: null returned: 1
Total time: 17 seconds
Building the android package failed!
-- For more information, run this command with --verbose.
看了build.xml好像是冗余,我一看jar包有3.35mb大小。是不是jar包太大了?
如果是这个原因的话,怎么解决啊?或者是其他原因。
求大神指点,我弄了两天了都没有什么头绪。
[javac] Compiling 7 source files to C:\Users\Administrator\Desktop\bu\android-build\bin\classes
[javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
[javac] 注: C:\Users\Administrator\Desktop\bu\android-build\src\org\qtproject\qt5\android\bindings\QtActivity.java使用或覆盖了已过时的 API。
[javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[javac] 3 个警告
BUILD FAILED
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:283: null returned: 1
Total time: 17 seconds
Building the android package failed!
-- For more information, run this command with --verbose.
看了build.xml好像是冗余,我一看jar包有3.35mb大小。是不是jar包太大了?
如果是这个原因的话,怎么解决啊?或者是其他原因。
求大神指点,我弄了两天了都没有什么头绪。
本文记录了一位开发者在尝试将第三方jar包整合到Android项目中遇到的问题,包括编译时出现的警告信息及错误提示。作者试图解决由于jar包过大可能导致的编译失败,并寻求解决方案。
3702

被折叠的 条评论
为什么被折叠?



