Android 无法导出应用程序

发布于 2025-01-03 03:36:00 字数 358 浏览 2 评论 0原文

从现在开始,我在尝试以发布模式签署我的应用程序时遇到了两/三天的问题。我已经尝试了在互联网/stackoverflow 中找到的所有信息,但没有任何效果。我已经更新了整个SDK,将proguard更新到4.7版本,检查了jar文件和冲突包,但找不到任何解决方案。我已将库包含到我的主项目中,但到目前为止,我在签署我的应用程序时没有遇到任何问题。

任何想法我还可以尝试什么来解决这个问题,因为我仍在通过互联网阅读一些信息,但仍然找不到任何解决方案。

PS 我在构建调试版本并在设备上运行时没有遇到问题。我遇到的唯一问题是,仅当我尝试在发布模式下签署我的应用程序时,我收到无法导出应用程序错误。

I have problem when trying to sign my application in release mode from over two/three days now. I've tried everything which I find as an information in internet/stackoverflow and nothing worked for me. I've update my whole SDK, update proguard to 4.7 version, checked for jar files and conflict packages, but can't find any solution. I have included library to my main project,but 'till now I did not have any problems with signing my application.

Any ideas what else I can try so I can solve this problem, because I'm still reading some information over internet and still can't find any solution.

P.S. I did not have problem with building debug version and running on device. The only problem I get is only when I try to sign my application on release mode and I get Failed to export application error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

零崎曲识 2025-01-10 03:36:00

对我来说,Jmart 的答案是好的。
您的项目中很容易出现烂文件名。

不管怎样,我发布了一个答案,因为作为 Android-Droid,我被常见的消息“无法导出应用程序”所困扰。

但是,通过尝试在没有签名的情况下导出我的应用程序(请参阅下面的屏幕截图),这次它给了我有关错误的解释!而当您签名时它没有说什么与向导。

在此处输入图像描述

希望它能帮助像我这样的其他人!

For me, the answer of Jmart was the good one.
You can easily have rotten file name in your project.

Whatever, I post an answer because, as Android-Droid I was stuck with the common message "Failed to export applicaiton".

But by trying to export my app without signature (see the screenshot under), this time it gaves me explanation on the error ! Whereas it don't say anything when you sign with the wizard.

enter image description here

Hope it helps others like me !

若水般的淡然安静女子 2025-01-10 03:36:00

不管你相信与否...我也遇到了同样的问题(“android 无法导出..”,没有任何其他指示/消息)。经过很多个小时后,我发现了问题:我在资产文件夹下有一个 .jpg 资源,其中包含一些特殊字符(ilíaco.jpg)。只要删除“冒犯”的字符,问题就解决了。

Believe it or not... I had the same problem ('android failed to export..' without any other indication/message). After many many hours I found the problem: I had a .jpg resource under the assets folder with some special characters (ilíaco.jpg). Just removing the "offending" character and problem solved.

心欲静而疯不止 2025-01-10 03:36:00

我想说,你有一些错误。尝试在虚拟机上运行该应用程序,看看它是否有效。如果它有效,请尝试清理并重建项目,然后导出..为我工作

You have some errors, I would say. Try to run the app on the virtual machine to see if it works. if it works, try to clean and rebuild the project and then export.. worked for me

却一份温柔 2025-01-10 03:36:00

您是否创建了自己的证书来签署应用程序以供发布?不要使用 Eclipse 自动生成的调试证书,因为您将无法签署您的应用程序以便稍后更新(特别是如果您将项目导出到另一台计算机上)。

如果是这样,您的证书是否已过期?您提供好的密码吗?

Have you created your own certificate to sign the app for release? Don't use the debug certificate automatically generated by Eclipse because you won't be able to sign your app for update later (especially if you export your project on another computer).

If so, has your certificate expires? Do you provide the good passwords?

一袭水袖舞倾城 2025-01-10 03:36:00

http://simply-developing.blogspot.in /2013/08/eclipse-failing-during-android-export.html

试试这个我搜索了所有这些问题,只有上面的链接解决了我的问题,我无法没有错误地导出对话框

http://simply-developing.blogspot.in/2013/08/eclipse-failing-during-android-export.html

try this i searched all these questions and only the above link solved my problem, i had failed to export dialog without errors

樱花坊 2025-01-10 03:36:00

我所做的是先导出未签名的文件,然后导出签名的文件。它起作用了,但不知道是什么原因造成的。

What I did was export unsigned it first then export signed. It worked, never knew what caused it though.

摘星┃星的人 2025-01-10 03:36:00

对我来说“清理”然后再次运行“导出”-解决了它

For me "Clean" and then run "Export" again - solved it

北方的巷 2025-01-10 03:36:00

我听说过在layout_below、layout_above 等属性中使用@+id 可能会导致此问题,请检查一下。仅在 android:id="@+id/idid" 情况下使用此选项。

I have heard about using @+id in attribute like layout_below, layout_above etc.. can cause this problem check this out. use this only in android:id="@+id/idid" cases.

探春 2025-01-10 03:36:00

确保操作系统硬盘上有足够的空间!

我有一个小型 SSD 用于我的 Windows 驱动器,我使用其他驱动器用于我的应用程序/数据。其中有足够的空间,我的 SSD 只剩下几 Mb(有一段时间没有进行清理)。

事实证明 Eclipse 正在将临时文件写入 AppData/Local 并且没有足够的空间来存储它们 - 导致了可笑的通用错误“无法导出应用程序”

Make sure you have enough space on your OS hard drive!

I have a small SSD for my Windows drive, and I use other drives for my applications/data. Which had plenty of space, my SSD had only a few Mb left on it (hadn't done a clean in a while).

Turns out Eclipse was writing temp files to AppData/Local and didn't have enough space to store them - causing the ridiculously generic error "Failed to export application"

倒带 2025-01-10 03:36:00

我有一些包含 .swf 文件的 boostrap 插件。他们从未使用过或要求过。
只有在我删除它们之后它才起作用。

始终确保:仅保留 image+css、html、js 文件,并且永远不会给出奇怪的错误

I had some boostrap plugins that contained .swf files. They wore never used or requested.
Only after I deleted them it worked.

To be always sure: keep only image+css,html,js files and it will never give the weird error

北城半夏 2025-01-10 03:36:00

我有同样的问题。通过在模拟器中运行应用程序一次来修复它 - 发现错误(在我的情况下,它正在寻找资产子文件夹)

修复了错误,在模拟器中成功运行它 - 然后导出 APK 文件。

希望这有帮助。

I had the same issue. Fixed it by running the application in emulator once - found the error (in my case it was looking for a asset sub folder)

Fixed the error, ran it in Emulator successfully - then Exported the APK file.

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文