原资产构建APK复制时 [英] Raw assets duplicated when building apk

查看:128
本文介绍了原资产构建APK复制时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建我的应用程序APK,最终的APK是两倍大,我的Eclipse项目文件夹中。我很困惑,为什么这是怎么回事,我想保持我的应用程序尽可能的小。

When building my application APK, the final APK is twice as big as my Eclipse project folder. I was perplexed as to why this was happening, I'd like to keep my app as small as possible.

我最近不得不通过从发布的APK提取恢复我的应用程序源代码,我发现了,为什么APK是如此之大,我用大约30音频采样,保存在/ RES / OGG文件的原始/。
当APK是建立在APK的根目录中创建一个额外的/原始的文件夹,用我所有的OGG文件的副本。

I've recently had to recover my application source by extracting from a released APK, I found out why the APK is so big, I use about 30 audio samples, saved as ogg files in /res/raw/. When the APK is built, an additional /raw folder is created in the root of the APK, with a duplicate of all of my ogg files.

有没有办法阻止这些文件被复制,就是Eclipse /蚂蚁告诉我,这些文件应该是在我的项目的根目录/文件夹的原料,而不是/ RES /生?

Is there a way to stop these files being duplicated, is Eclipse/ant telling me the files should be in a /raw folder in the root of my project, instead of /res/raw?

推荐答案

好吧,这不是一个答案可言,我仍然在与我的项目发生了什么事情错了没有更清晰。

Okay this isn't an answer at all, I'm still no clearer on what was going wrong with my project.

我也不过设法阻止被复制的文件在我的APK建设,通过复制我所有的资源文件,我的工作空间,在Eclipse中删除res文件夹(删除文件以及)。后来终于通过手工重新创建整个资源结构,并通过拖动重新添加所有的原始资产拖放到他们的Eclipse。

I did however manage to stop the files being duplicated in my APK build, by copying all my res files out of my workspace, deleting the res folder from within Eclipse (deleting the files as well). Then finally recreating the entire res structure by hand and re-adding all the raw assets by drag dropping them into Eclipse.

这篇关于原资产构建APK复制时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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