上一页 1 ··· 4 5 6 7 8

2019年10月22日

摘要: 在 post 时,不加大括号, 在 Get 请求中 Content-Type 在headers中 在post请求时 Content-Type 无法添加到 headers 中 ,除非是在初始化时就添加了默认 headers 2 post @Field 打印时无法出现参数名,但实际是有的 最后使用@Fi 阅读全文
posted @ 2019-10-22 10:28 caosiqiao 阅读(1501) 评论(0) 推荐(0) 编辑

2019年10月16日

摘要: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/net.topstarts-exLrAaw3uoK7nr6ftBLBTg==/base.apk"],nativ 阅读全文
posted @ 2019-10-16 17:11 caosiqiao 阅读(855) 评论(0) 推荐(0) 编辑

2019年10月15日

摘要: 使用代码 setGraph 只有一个fragment 结果使用 阅读全文
posted @ 2019-10-15 16:33 caosiqiao 阅读(3928) 评论(0) 推荐(0) 编辑

2019年10月10日

摘要: 今天因为要给banner的图片添加圆角,使用 Bitmap 转换圆角 用协程去切换线程 在Debug中出现ThreadException: Only the original thread that Created a view hierarchy can touch its views 不debu 阅读全文
posted @ 2019-10-10 18:11 caosiqiao 阅读(768) 评论(0) 推荐(0) 编辑
摘要: FrameLayout 正常情况是 第二个view 遮住第一个view 但如果添加了 阅读全文
posted @ 2019-10-10 16:32 caosiqiao 阅读(278) 评论(0) 推荐(0) 编辑

2019年9月30日

摘要: private var personDaoImpl: SysPersonDaoImpl? = null一般是申明的时候指定了可以为空 但实际为null时,kotlin无法智能转换 ,修改成: private lateinit var personDaoImpl: SysPersonDaoImpl 阅读全文
posted @ 2019-09-30 16:26 caosiqiao 阅读(2622) 评论(0) 推荐(0) 编辑
摘要: 1. subscribe{} return is not allowed here 把 subscribe{} 里的代码提取到一个单独的方法中就可以了 阅读全文
posted @ 2019-09-30 14:32 caosiqiao 阅读(495) 评论(0) 推荐(0) 编辑

2019年9月24日

摘要: ?: 表示当前对象可以为空 (不为空就执行) 不报空指针 !!:表示当前对象不为空的情况下执行 为空就报空指针 return response.body()?.msg ?: "返回数据为空" 表示response.body()不为null则返回 response.body().getMsg() re 阅读全文
posted @ 2019-09-24 13:49 caosiqiao 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 昨天使用公司本地的gitlab,组长创建的大项目,自己在里面创建一个安卓项目,然后 commit push 就报错 --author xxxxxxx is not 'name' and matches no existing authorerror: failed to push some refs 阅读全文
posted @ 2019-09-24 09:03 caosiqiao 阅读(254) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8

导航