MVVMLin icon indicating copy to clipboard operation
MVVMLin copied to clipboard

一个基于MVVM用Kotlin+Retrofit+协程+Databinding+LiveData来封装的快速开发框架

Results 12 MVVMLin issues
Sort by recently updated
recently updated
newest added

您好,很感谢你的库,让我学到了很多东西,但是再使用fragment时候发现replace (共享viewmodel)模式会导致观察者重复收到数据,请问下这个有解决方案吗?

如题所示: 我将kotlin-gradle-plugin升级到1.6.10 gradle-wrapper.properties 升级到gradle-6.5-all com.android.tools.build:gradle 升级到4.1.2 运行项目room报错,耗时很久没能解决,还望指点,谢谢!错误如下: The query returns some columns [curPage, offset, over, pageCount, size, total, datas] which are not used by java.lang.Object. You can use @ColumnInfo annotation...

小哥哥 有个小问题 就是 你home fragment 请求网络数据的时候 触发事件是 SwipeRefreshLayout setOnRefreshListener 就有下拉显示效果了 然后呢正常情况下 livedata 回来会把SwipeRefreshLayout的效果关掉 但是异常情况 并没有 最近用 jetpack+kotlin 替换 之前的 rxjava2等基础框架项目 也尝试着封装一个 jetpack+kotlin快速开发基类框架 在大量寻找和借鉴 有个小问题哈 就是 网络请求 一般情况下基类属性为{ code,msg,T} 就是请求到数据后 code不是正常返回结果...

博主,使用你的封装方法后出现了如下问题: ![viewmodel](https://user-images.githubusercontent.com/23256376/126460606-a38f40c6-a48a-4542-b394-e61c355100cd.png) ![main_view_model](https://user-images.githubusercontent.com/23256376/126460923-dc1d130e-3d32-45cc-a4ea-1f513bc52860.png) ![mian_activity](https://user-images.githubusercontent.com/23256376/126460944-08cea548-ccb2-4ec2-860d-ae4b5156075d.png) 在触发Exception之后程序并没有崩溃,这个Exception走到了BaseViewModel#handleException的catch中,但是后面再去setValue时,ui就收不到通知了 ![LiveData](https://user-images.githubusercontent.com/23256376/126461141-e85e2cc2-726e-4c51-bcdb-155fe6fccb0b.png) 调试发现后面这个mDispatchingValue一直为true,博主知道怎么解决嘛?

如果三个请求合并在一起要咋写

手机上运行报错。 `01/28 14:29:00: Launching 'app' on HTC HTC E9pw. Installation did not succeed. The application could not be installed: INSTALL_FAILED_DEXOPT List of apks: [0] 'D:\asProject\MVVMLin\app\build\outputs\apk\debug\app-debug.apk' The device might have stale...

Caused by: java.lang.NoSuchMethodException: zy.inflate [class android.view.LayoutInflater] at java.lang.Class.getMethod(Class.java:2072) at java.lang.Class.getMethod(Class.java:1693) at com.commonlib.base.BaseActivity$a.a(BaseActivity.kt:3) at com.commonlib.base.BaseActivity$a.invoke(BaseActivity.kt:1) at yj2.getValue(LazyJVM.kt:5) at com.commonlib.base.BaseActivity.d(Unknown Source:2) at com.commonlib.base.BaseActivity.h(BaseActivity.kt:1) at com.commonlib.base.BaseActivity.onCreate(BaseActivity.kt:3) at android.app.Activity.performCreate(Activity.java:8000) at android.app.Activity.performCreate(Activity.java:7984) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309) at...

请教,如果捕获这样的异常? @AleynP

as 4.0.2 build `// Top-level build file where you can add configuration options common to all sub-projects/modules. apply from: "config.gradle" buildscript { ext.kotlin_version = "1.3.72" repositories { google() jcenter() }...