bug
工蚁
好好学习,天天向上
展开
-
PopupWindow的setClippingEnabled()
需求是实现如下的效果 下面是我的初始code实现 View contentView = LayoutInflater.from(mContext).inflate(R.layout.popup_index_list, null, false); final PopupWindow window = new PopupWindow(contentView, MATCH_PARENT, M...原创 2020-02-27 13:23:01 · 2390 阅读 · 0 评论 -
学习笔记(1)之Arrays.asList
Arrays.asList把数组转成List后获得的集合没办法进行add和remove操作,这是因为获取的ArrayList是Arrays的内部类,该类不是java.utils包下的ArrayList,该ArrayList类同样继承自AbstrictList,但是其自身并未重写add和remove方法,AbstrictList类的add()和remove()会抛出UnsupportedOperat...原创 2019-02-12 10:46:26 · 109 阅读 · 0 评论 -
bug笔记(1)之Static interface methods are only supported starting with Android N
错误日志: Static interface methods are only supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator.lambda$static$0(okhttp3.Route, okhttp3.Response) 解决办法: 在运行module的buil...原创 2019-02-26 16:28:25 · 360 阅读 · 0 评论 -
bug笔记(2)之Could not find com.android.tools.build:gradle:3.3.0.
Down a project from github , found this bug. solve method: buildscript { repositories { jcenter() //重点 maven { url 'https://maven.google.com' } }...原创 2019-05-06 09:22:32 · 311 阅读 · 0 评论 -
bug日记(3)之Plugin with id 'com.github.dcendents.android-maven' not found
在我导入一个module 到项目后,该module 的build.gradle文件出现这个提示 Plugin with id 'com.github.dcendents.android-maven' not found 解决方式 在项目的build.gradle文件中添加 classpath 'com.github.dcendents:android-maven-gradle-plugi...原创 2019-05-06 11:11:44 · 68 阅读 · 0 评论 -
GreenDao之UNIQUE constraint failed
我的问题是Primary Key的类型是long类型, 无法将主键的初始值赋值为null,只需要将主键的类型改为Long即可.原创 2019-07-05 10:48:07 · 989 阅读 · 0 评论