- 博客(7)
- 收藏
- 关注
原创 无法识别java文件
提示错误: Cannot Create Class Unable 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 1254 2
原创 java核心技术卷一 笔记1(第四章)
对象与类注意点: 构造器: 1.不要在构造器中定义与实例域重名的局部变量 如: public Employee(String n, double s,...) { String name=n;//Error double salary=s//Error ... } 这些变量屏蔽了存取它们的实例域 2.不要编写返回引用可变对象的访问器方法。如: class Emplyee { private Da...
2018-10-08 16:03:24 266
原创 remove出现的bug
for ( int num : datas) { if (...) { datas.remove(num); } } 会报出bug,应改为: Iterator<integar> iterator = datas.iterator(); whi...
2018-09-30 14:28:53 339
原创 activity(如:录视频)结束后自动横屏,导致调用两次oncreate
在AndroidManifest中加入 android:configChanges="orientation|screenSize"
2018-09-29 15:31:17 199
原创 上传项目相关快捷键-Mac
终端进入目录: cd 后输入路径 拷贝全部目录: git clone --recursive 上传项目: git init git remote add origin 地址 git add . git commit -m "这是注释" git push -u origin master AS管理: 管理项目添加子模块: git submodule add 地址 ...
2018-09-07 16:23:43 248
原创 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 2257
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人