简体   繁体   English

无法导出错误的Android应用程序无法导出应用程序

[英]Cannot export Android application with error Failed to export application

Why can't I export my app? 为什么我不能导出我的应用程序? and what does this stack trace indicate? 该堆栈跟踪指示什么?

I have seen other people post similar problems(See stack trace) when exporting but the answers given to them did not help me. 我已经看到其他人在导出时发布了类似的问题(请参阅堆栈跟踪),但是给予他们的答案并没有帮助我。

I have tried using java 6, java 7, upgrading eclipse, upgrading ADT with no luck. 我尝试使用java 6,java 7,升级eclipse,升级ADT而没有运气。

I am planning to answer this problem myself once the waiting period is up. 等待时间到后,我打算自己回答这个问题。

Stack Trace: 堆栈跟踪:

Command-line Error -1073741819
at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeAapt(BuildHelper.java:973)
at com.android.ide.eclipse.adt.internal.build.BuildHelper.updateCrunchCache(BuildHelper.java:192)   
at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:158)
at com.android.ide.eclipse.adt.internal.project.ExportHelper$2.run(ExportHelper.java:373)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Session Data: 会话数据:

eclipse.buildId=4.3.2.M20140221-1700
java.version=1.7.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

I found my solution using using Windows 7 with eclipse 4.3 and ADT to Version 23.0.1.1256982. 我找到了使用Windows 7和Eclipse 4.3和ADT版本23.0.1.1256982的解决方案。

The solution I found was I had a bad 9-patch image. 我发现的解决方案是我的9补丁图像不好。 After ensuring the scaled down versions in the mdpi and hdpi folder were proper 9-patch images the project exported properly. 确保mdpi和hdpi文件夹中的按比例缩小版本为正确的9补丁图像后,项目可以正确导出。

Really annoying how it fails during the crunching of resources with no indication that it was caused by a bad 9-patch image. 真正令人讨厌的是它在资源压缩期间如何失败,而没有迹象表明它是由不良9补丁映像引起的。 You would think running lint would detect things like this and not just failed when exporting. 您会认为运行皮棉会检测到这种情况,而不仅仅是在导出时失败。

I found my solution using using Windows 7 with eclipse 4.3 and ADT to Version 23.0.1.1256982. 我找到了使用Windows 7和Eclipse 4.3和ADT版本23.0.1.1256982的解决方案。

The solution I found was I had a bad 9-patch image. 我发现的解决方案是我的9补丁图像不好。 After ensuring the scaled down versions in the mdpi and hdpi folder were proper 9-patch images the project exported properly. 确保mdpi和hdpi文件夹中的按比例缩小版本为正确的9补丁图像后,项目可以正确导出。

Really annoying how it fails during the crunching of resources with no indication that it was caused by a bad 9-patch image. 真正令人讨厌的是它在资源压缩期间如何失败,而没有迹象表明它是由不良9补丁映像引起的。 You would think running lint would detect things like this and not just failed when exporting. 您会认为运行皮棉会检测到这种情况,而不仅仅是在导出时失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM