- 博客(7)
- 收藏
- 关注
原创 无法识别java文件
提示错误:Cannot Create ClassUnable to parse template “Class”Error message: Selected class file name‘xxx.java’ mapped to not javafile type ‘Text files’解决方法:打开设置...
2018-10-12 16:24:07
1296
2
原创 java核心技术卷一 笔记1(第四章)
对象与类注意点:构造器:1.不要在构造器中定义与实例域重名的局部变量如:public Employee(String n, double s,...){String name=n;//Errordouble salary=s//Error...}这些变量屏蔽了存取它们的实例域2.不要编写返回引用可变对象的访问器方法。如:class Emplyee{private Da...
2018-10-08 16:03:24
292
原创 remove出现的bug
for ( int num : datas) { if (...) { datas.remove(num); } }会报出bug,应改为:Iterator<integar> iterator = datas.iterator(); whi...
2018-09-30 14:28:53
374
原创 activity(如:录视频)结束后自动横屏,导致调用两次oncreate
在AndroidManifest中加入android:configChanges="orientation|screenSize"
2018-09-29 15:31:17
217
原创 上传项目相关快捷键-Mac
终端进入目录:cd 后输入路径拷贝全部目录:git clone --recursive上传项目:git initgit remote add origin 地址git add .git commit -m "这是注释"git push -u origin masterAS管理: 管理项目添加子模块:git submodule add 地址...
2018-09-07 16:23:43
272
原创 Unable to find method
将compileSdkVersion改为28 改compile为implementation与api sync以后报错。 show log in finder:2018-09-06 09:04:38,626 [d thread 4] WARN - nal.AbstractExternalSystemTask - Cause: com.android.build.gradle.api....
2018-09-06 09:22:25
2347
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人