简体   繁体   English

在android中更新应用程序后,我的资产文件夹中的图像未被替换

[英]My images in assets folder not replaced after update app in android

I have some images in the assets folder, I change all images with new images but with the same name. 我在资源文件夹中有一些图像,我用新图像更改所有图像,但名称相同。 when I update my app the old images are still shown. 当我更新我的应用程序时,旧图像仍然显示。 I must clear data to see the new images in my android app. 我必须清除数据才能在我的Android应用程序中查看新图像。

The old images are cached by android studio and you must clear the cache. 旧的图像由android studio缓存,你必须清除缓存。 for doing this go to Files > Invalidate Cache/Restart or you can clean the build files by: Build > Clean Project . 为此,请转到Files > Invalidate Cache/Restart或者您可以通过以下方式清除构建文件: Build > Clean Project

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

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