简体   繁体   English

我所有的资源都在.apk文件中重复

[英]All my resources get duplicated in .apk file

I recently wondered why my Android APK file is about twice as large as the resources folder it uses. 我最近想知道为什么我的Android APK文件大约是其使用的资源文件夹的两倍。 I unpacked the apk and found out, that Eclipse had duplicated all resources! 我打开了apk的包装,发现Eclipse复制了所有资源!

Usually everything is stored in a "assets" subfolder of my project folder (this folder contains textures, sound files etc.). 通常,所有内容都存储在项目文件夹的“资产”子文件夹中(此文件夹包含纹理,声音文件等)。 But Eclipse copied all those files directly to the root folder of the apk. 但是Eclipse将所有这些文件直接复制到apk的根文件夹中。 So all files are duplicated and the final file size is twice of what it should be. 因此,所有文件都是重复的,最终文件大小是应有文件大小的两倍。

I already tried to remove the assets, clean the project and re-add the assets. 我已经尝试删除资产,清理项目并重新添加资产。 Still the same thing happens. 仍然发生同样的事情。 How can I fix this problem? 我该如何解决这个问题? Thanks! 谢谢!

Here are some articles that may help you. 以下是一些可能对您有所帮助的文章。

Take a look at here and here . 看看这里这里

Hope this will help) 希望这会有所帮助)

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

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