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

1.0.1版本安装不上 #2

Closed
Jayshanx opened this issue Sep 16, 2018 · 5 comments
Closed

1.0.1版本安装不上 #2

Jayshanx opened this issue Sep 16, 2018 · 5 comments

Comments

@Jayshanx
Copy link

错误信息;
Didn't find class "java.util.Optional" on path: DexPathList[[zip file "/data/app/com.xujiaji.wanandroid-1/base.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.xujiaji.wanandroid-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.xujiaji.wanandroid-1/lib/arm, /data/app/com.xujiaji.wanandroid-1/base.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_dependencies_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_0_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_1_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_2_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_3_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_4_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_5_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_6_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_7_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_8_apk.apk!/lib/armeabi-v7a, /data/app/com.xujiaji.wanandroid-1/split_lib_slice_9_apk.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]

@xujiaji
Copy link
Owner

xujiaji commented Sep 16, 2018

尴尬了,好像是因为给app改了名字,导致安装失败。卸载老版本后,重新下载安装1.0.1就可以了。具体原因还不清楚,签名也没变

@xujiaji
Copy link
Owner

xujiaji commented Sep 16, 2018

可能找到问题了,看来得再更新一次版本了

@Jayshanx
Copy link
Author

还有另外一个问题,我不开新的issue了:在上拉刷新到没有更多数据之后,再下拉刷新,只会加载第一页数据,然后上拉不可用,初学者,看不出问题在哪里
但在 https://www.jianshu.com/p/b343fcff51b0 有提示到
注意:如果上拉结束后,下拉刷新需要再次开启上拉监听,需要使用setNewData方法填充数据。

@xujiaji
Copy link
Owner

xujiaji commented Sep 16, 2018

好的,感谢反馈

@xujiaji
Copy link
Owner

xujiaji commented Sep 16, 2018

已修复,并更新版本到1.0.2

  • App安装失败原因:dagger2的 @BindsOptionalOf注解需要用到 java.util.Optional(API 24+)或者谷歌工具包Guava中的Optional,现在使用中间层Optional模拟谷歌Optional解决。详情请查看Optional.java
  • 加载问题:MVVMQuick框架的 onListRefresh 方法没有重置加载的偏移位置,并且Adapter没有在更新后重置已完成加载的状态。

( ̄▽ ̄)~*

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

2 participants