如何在离子构建/运行时强制刷新缓存的源文件?
问题描述:
我有这个随机问题离子生成
或离子跑
。
我注意到在编译期间它使用了我的源代码的缓存,因此在进行新的更改时,它不会反映在重新编译应用程序时。
I've noticed that during compilation it uses the cache of my source code, therefore when making new changes it doesn't reflect upon re-compiling the app.
所以我的问题是,如何清除构建文件的缓存?我已经尝试过离子状态重置
但是它仍然不起作用,也没有卸载然后从我的Android重新安装应用程序。
So my question is, how can you clear the cache for the build files? I've tried doing ionic state reset
but still it doesn't work nor doing uninstall then re-install the app from my Android.
谢谢
答
我为解决我的问题所做的是重新初始化Android平台。
What I did to solve my problem was to do re-initialize Android platform.
离子平台删除android
然后离子平台添加android