Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请抓紧解决一下 安卓 getMainDiskStorageCache方法过期问题 #35

Open
yanzhandong opened this issue Feb 28, 2018 · 11 comments
Open

Comments

@yanzhandong
Copy link

/Users/dong/project/ejiazi/robotHousekeeper/node_modules/react-native-http-cache/android/src/main/java/cn/reactnative/httpcache/HttpCacheModule.java:69: 错误: 找不到符号
FileCache cache1 = ImagePipelineFactory.getInstance().getMainDiskStorageCache();
^
符号: 方法 getMainDiskStorageCache()
位置: 类 ImagePipelineFactory
/Users/dong/project/ejiazi/robotHousekeeper/node_modules/react-native-http-cache/android/src/main/java/cn/reactnative/httpcache/HttpCacheModule.java:80: 错误: 找不到符号
FileCache cache2 = ImagePipelineFactory.getInstance().getSmallImageDiskStorageCache();
^
符号: 方法 getSmallImageDiskStorageCache()
位置: 类 ImagePipelineFactory
2 个错误
:react-native-http-cache:compileReleaseJavaWithJavac FAILED

@long-joan
Copy link

我也是这样的 你找到解决方法了么

@yanzhandong
Copy link
Author

@long-joan 换一个库吧 别用这个了

@long-joan
Copy link

我找到问题所在了

@dai1254473705
Copy link

大家怎么处理的?求推荐一个其他的库或者说下怎么修改,谢谢了

@lehug
Copy link

lehug commented Aug 10, 2018

有其他的库吗? 我基于那个改了下,发布了一个 https://www.npmjs.com/package/react-native-http-cache-55valid ,不清除有其他的可以替代不

@LannyCodes
Copy link

@long-joan 你怎么解决的,我现在也遇到了这个问题

@LannyCodes
Copy link

https://www.ctolib.com/android/categories/android-app.html I find this solution currently!

@long-joan
Copy link

@LannyCodes getMainDiskStorageCache ---> getMainFileCache getSmallImageDiskStorageCache---->getSmallImageFileCache

@LannyCodes
Copy link

@long-joan 多谢啦,祝你工作顺利!

@hqwlkj
Copy link

hqwlkj commented Sep 26, 2018

已经找到处理方法了,请参考: #36

@xkdaq
Copy link

xkdaq commented Nov 6, 2018

修改源码里面的两个方法: https://blog.csdn.net/qq_31743309/article/details/83787550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants