开发者社区> 问答> 正文

android app打包失败问题

原本可以打包的,但是新增一些界面和加入一些图片以后,再export signed application package 就报Failed to export application,请问是什么问题?

展开
收起
爵霸 2016-06-06 14:13:05 1947 0
1 条回答
写回答
取消 提交回答
  • 某谷歌回复是这样的:

    “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.”意思是资源文件里放了一个特殊字符命名的jpg文件造成这种错误。

    某百度回复是这样的:“Preferences→Android→Build→Build optput选择Silent就可以了! ”
    总结出一个结论,好像这个错误的出现总是和资源或资源文件夹有些关系。
    后来回忆起Eclipse启动时提示过project文件夹已占用,要求替换过的系统提示。好像就是因为资源文件夹没准备好就打包apk文件造成这种情况的。

             so,我的解决办法就是,重新打开eclipse环境(这次没弹任何提示),先clear下,在fix一下工程,然后Run一下,(前边三步骤可以不要,为了保险些我这样做的)编译apk成功。

    我主要是参考了下边地址:http://www.7ak8.com/a/shoujikaifa/android/2013/1203/798.html

    2019-07-17 19:28:33
    赞同 展开评论 打赏
问答分类:
问答地址:
相关产品:
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载

相关实验场景

更多