简体   繁体   English

如何从 res/raw 文件夹中删除媒体文件?

[英]How to delete media file from res/raw folder?

I have a media file under my res/raw folder and after the app installed I need to delete this file.我的res/raw文件夹下有一个媒体文件,安装应用程序后,我需要删除此文件。 How to do it?怎么做?

I know that I can download this file after install and then delete or any other ways, but I need this file to be build.我知道我可以在安装后下载此文件然后删除或任何其他方式,但我需要构建此文件。 I see only option to make it build in put it to res folder.我看到的唯一选项是将其构建到res文件夹中。 But because of size 100Mb I don't wan't to hold it, so I need to remove it.但由于大小为 100Mb,我不想拿着它,所以我需要删除它。

I am not sure that it is even possible我不确定这是否可能

How to do it?怎么做?

That is not possible.这是不可能的。 Resources and assets are packaged in the APK and are read-only.资源和资产打包在 APK 中并且是只读的。 They cannot be modified or deleted.它们不能被修改或删除。

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

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