摘要:
在 post 时,不加大括号, 在 Get 请求中 Content-Type 在headers中 在post请求时 Content-Type 无法添加到 headers 中 ,除非是在初始化时就添加了默认 headers 2 post @Field 打印时无法出现参数名,但实际是有的 最后使用@Fi 阅读全文
摘要:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/net.topstarts-exLrAaw3uoK7nr6ftBLBTg==/base.apk"],nativ 阅读全文
摘要:
使用代码 setGraph 只有一个fragment 结果使用 阅读全文
摘要:
今天因为要给banner的图片添加圆角,使用 Bitmap 转换圆角 用协程去切换线程 在Debug中出现ThreadException: Only the original thread that Created a view hierarchy can touch its views 不debu 阅读全文
摘要:
FrameLayout 正常情况是 第二个view 遮住第一个view 但如果添加了 阅读全文
摘要:
private var personDaoImpl: SysPersonDaoImpl? = null一般是申明的时候指定了可以为空 但实际为null时,kotlin无法智能转换 ,修改成: private lateinit var personDaoImpl: SysPersonDaoImpl 阅读全文
摘要:
1. subscribe{} return is not allowed here 把 subscribe{} 里的代码提取到一个单独的方法中就可以了 阅读全文
摘要:
?: 表示当前对象可以为空 (不为空就执行) 不报空指针 !!:表示当前对象不为空的情况下执行 为空就报空指针 return response.body()?.msg ?: "返回数据为空" 表示response.body()不为null则返回 response.body().getMsg() re 阅读全文
摘要:
昨天使用公司本地的gitlab,组长创建的大项目,自己在里面创建一个安卓项目,然后 commit push 就报错 --author xxxxxxx is not 'name' and matches no existing authorerror: failed to push some refs 阅读全文