摘要:
目录配置 https://blog.csdn.net/Kideers/article/details/128233984 https://blog.csdn.net/hnjcxy/article/details/127596450 修改gradle目录(默认系统盘/用户/.gradle) 也可以通过 阅读全文
摘要:
选择打开文件后,现在一般返回 Uri contentResolver.getType(selUrl) 结果如下: | 后缀 | 类型 | | | | | .txt | text/plain | | .mp4 | video/mp4 | | .jpeg | image/jpeg | | .mp3 | 阅读全文
摘要:
kotlinx.coroutines.channels.ClosedSendChannelException: Channel was closed at kotlinx.coroutines.channels.Closed.getSendException(AbstractChannel.kt:1 阅读全文
摘要:
Android Custom View是可以使用 databinding 的 //java.lang.IllegalArgumentException: View is not a binding layout// val bindingTemp = DataBindingUtil.bind<V>( 阅读全文
摘要:
inline关键字修饰的方法,可以在运行时将代码复制到使用处 用来控制打印好用 但有两个缺点: 一.修饰的方法不能太大,行数也不能太多,不然会造成很多重复代码 2.控制打印时,方法的行数最好与使用的行数接近,相同,不然后找到不对应的代码行数 阅读全文
摘要:
kotlin的 data class 不能简略的继承 另一个 data class(要初始化对应父类的值) 尝试使用 sealed class 解决 sealed class CommonParams{ var aaaa:String?=null}data class ParamsOne( val 阅读全文
摘要:
/** * js->native * 无法传递 不同类型的数组给到android,android接收到的不同类型的数组时,只有指定类型有值,其他为null * 使用Array<Any>接收时,会使整个为 null * 解决办法 * 1.转换成 json * 2.使用 Array里是同类型(js 数组 阅读全文
摘要:
错误: Cannot resolve type 'viewModel'错误: cannot generate view binders android.databinding.tool.util.LoggedErrorException: failure, see logs for details. 阅读全文
摘要:
An exception occurred applying plugin request [id: 'kotlin-kapt']> Failed to apply plugin 'kotlin-kapt'. > Extension with name 'kotlin' does not exist 阅读全文