异常:android.content.res.Resources$NotFoundException: String resource ID #0x1异常 为控件展示object类型与require类型不符合,不是字面意义上的资源文件找不到
异常:java.io.IOException: unexpected end of stream on com.android.okhttp.Address@67ce78cc,外网没有访问后端请求域名权限
异常:android.database.sqlite.SQLiteException: duplicate column name: LOCALAREADIS (Sqlite code 1): , while compiling: alter table lossfits add column LOCALAREADIS TEXT;, (OS error - 88:Socket operation on non-socket)重复添加列引起的异常,比如建表语句中已经有此列但是又写了新的增加这一列的sql就会导致重复添加列的问题
异常:java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteQuery: SELECT REPORT_NO FROM task_main_info WHERE (TASK_STATE=? or TASK_STATE=? or TASK_STATE=? or TASK_STATE=? or TASK_STATE=?) and EMP_CODE=? 数据库异常,查询语句入参为空
异常:this message is alerday in use ; 同一个message对象在handler.sendmessage后又handler.sendmessage一次
异常:java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{312e37e position=1 id=-1, oldPos=-1, pLpos:-1 no parent} android.support.v7.widget.RecyclerView{b991391 VFED..... ......ID 0,240-1080,1711 #7f0804cb app:id/repair_info_rv}, adapter:com.tp.claim.util.ManHourAdapter@55458fe, layout:android.support.v7.widget.LinearLayoutManager@a7b785f, context:com.tp.claim.ui.ChargedInfoRepairTwoActivity@84f949c
异常:java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()在thread内部再开启线程报错
异常:Error:com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) 需要依赖implementation"com.google.guava:guava:23.0-android
特殊:Java中时间戳精度是13位精确到毫秒 C++中时间戳长度为10位精确到秒
特殊:Java中BigDecimao不要使用new BigDecimal(double)的构造方法要是用.valueof()
flutter exception :SocketException: Failed host lookup: 'www.xyz.com' (OS Error: No address associated with hostname, errno = 7) 检查手机当前网络是否通畅,当时因为用的是公司内网出现此问题
3.4 as默认使用gradle版本为5.1.1,用该版本build的时候会报transformDexWithInstantRunSlicesApkForDebug这个错误,和Instant Run有关,关了Instant Run后不报错了。想要使用可以升级gradle到5.4版本
kotlin.UninitializedPropertyAccessException: lateinit property userName has not been initialized 在Kotlin中lateinit修饰的属性使用前必须初始化
编译异常:com.android.tools.idea.gradle.project.sync.ng.NewGradleSyncNotSupportedException: New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version 当前gradle版本和gradle插件版本不匹配导致
java.lang.IllegalStateException:at java.util.ArrayList$Itr.remove(ArrayList.java:873) 删除判断条件要精准不能一次iterator.remove多个item
java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. SQL查询数据库数据是获取的数据不在查询的列内
com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/ gradle版本和gradle插件版本不一致
Gridview的item布局使用cardview时cardview一定要设置margin否则无效
华为手机设置-无障碍-打开了高对比度文字 会导致app内设置字体颜色无效只有黑白两种颜色。
Flutter异常:
Could not find a generator for route RouteSettings("second_route", null) in the _WidgetsAppState. 注册路由的路由名称与你在pushname使用的路由名称不匹配
Android10版本
网友评论