-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path备注
31 lines (20 loc) · 1.73 KB
/
备注
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1.android.injected.testOnly=fasle vivo测试添加这个
2.scrollview与doodleview和webview嵌套 用getParent().requestDisallowInterceptTouchEvent(false); 拦截手势
webview需要注意不能用单位适配。需要用px匹配
3.引入新的工程注意gradle 版本,和gradle.properties 例:D:\androidworkspace\trunk\code\gradle.properties
4.https://github.com/ltttttttttttt/RetrofitDemo 仿retrofit 自定义注解网络请求
5.https://github.com/Trinea/android-open-project 开源项目集合
6.getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); 会导致小米等手机遮挡屏幕,webview无法弹出问题,适配webview根据不同位置做平阴
和改变softmode
7.https 对andorid 6.0以下的tls1.0 1.1证书的限制问题 如果自定义网络框架需要判断是否是https , if (connection instanceof HttpsURLConnection){
看SSLSocketFactoryCompat
8.Error:null value in entry: outputDirectory=null
删掉根目录下.gradle文件夹,然后clean ,rebuild就行了
9.若项目中在jnilib引入了so文件,还再gradle中用compile引用,可能导致去lib中寻找so,导致编译失败。
10.e出行项目coomonbase/metro中utils,开发前看下是否能够使用,以免不必要的开放
11. WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;
getWindow().setAttributes(lp);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
全屏设置
12. Android Studio 打开启动项目的时候就提示了这么一个错误,具体什么原因我也不清楚,不过在尝试下关闭了电脑的移动热点后重新 Build 一下就没有再出现这个问题了