使用 Eclipse ADT 导出 APK 时忽略某些文件
Eclipse ADT 中有没有办法在导出 APK 包时忽略 Package Explorer 下的某些文件集?
我有一个 PhoneGap 应用程序,它与另一个应用程序重用一大堆 js/css/images,但目前 APK 导出包括我的“assets”目录下的所有内容,从而导致 APK 大小增大。理想情况下,我只希望“assets”目录下的某些 js/css/image 文件包含在包中,而不是所有内容。
Is there a way in Eclipse ADT to ignore a certain set of files under the Package Explorer when exporting an APK package?
I have a PhoneGap application that reuses a whole bunch of js/css/images with another application, but currently the APK export is including everything under my "assets" directory, inflating the APK size as a result. Ideally, I only want certain js/css/image files under my "assets" directory to be included in the package instead of everything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 SDK/API 不支持直接实现此目的,但是您将共享资源放入存储卡的目录中并从您的应用程序中引用它们?虽然你的下一个问题是如何“安装”共享图像等而不将它们包含在 .apk 文件中..我不确定答案。
I don't think that there is any support in the SDK/API to achieve this directly but you put your shared resources into a directory on to the memory card and refer to them there from your app? Though your next question is how would you 'install' the shared images etc without including them in the .apk file.. which I'm not sure of the answer.