更新到 android v20 后,Ant 无法构建签名的 apk [英] Ant fails to build signed apk after updating to android v20

查看:33
本文介绍了更新到 android v20 后,Ant 无法构建签名的 apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我将 android 和 eclipse 工具升级到 v20 后,发生了很多奇怪的错误

Quite a bit of weird error is happening after I upgraded android and eclipse tools to v20

在创建签名的 apk 时,通过 Ant 构建停止工作,并出现以下错误

building through Ant stopped working with the following error upon creating the signed apk

 BUILD FAILED
 C:\Programs\Android\tools\ant\build.xml:1097: The following error occurred while executing this line:
 C:\Programs\Android\tools\ant\build.xml:1109: Cannot recover key

知道升级到 android JB 组件时会发生什么变化吗?如何纠正?

Any idea what could've changed when doing the upgrade to android JB components, and how can this be rectified?

感谢您的帮助...

推荐答案

我刚刚在这个话题上花了大约 5 小时...这一切都归结为密码后面的一个空格.

I just spent about 5hr on this topic... It all came down to a space after the password.

显然在以前的版本中它正在修剪密码,而在当前版本中则没有.

Apparently in the prior version it was trimming the password and in the current version it does not.

因此确保行尾没有空格可能会有所不同.这为我们解决了问题 - 无需使用 JDK7(尽管它似乎可以正常构建和运行,至少在 ant 中是这样).

So making sure you don't have spaces at the end of the lines might make the difference. That solved the problem for us - no need to go to JDK7 (although it seems to build and work just fine anyway, at least from ant).

这篇关于更新到 android v20 后,Ant 无法构建签名的 apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆