
错误笔记
艾苏北郡的小铁匠
学无止境
展开
-
sequelize Field '*xxxx*' doesn't have a default value错误解决
在node.js平台下用sequelize作为ORM框架,向数据库中插入数据时报错:Field 'id' doesn't have a default value,我的表定义为: const Task = sequelize.define('task',{ id:{ type:Sequelize.BIGINT(10), primaryKey:true, allowNull:false...原创 2020-01-10 19:48:13 · 1586 阅读 · 0 评论 -
BitmapFactory.decodeFile返回NULL
解决BitmapFactory.decodeFile返回NULL的问题今天在写获取本地图片,然后将其转化为Bitmap,再对Bitmap进行压缩处理后保存在本地的另一文件夹的代码时,遇到了这样的问题:BitmapFactory.decodeFile(String path ,Options options)执行这个方法总是返回空的bitmap,查看了许多资料,还是没有找到原因,最后在debug的时候原创 2016-09-24 23:59:00 · 7118 阅读 · 3 评论 -
No static method setOnApplyWindowInsetsListener
发生此错误的原因是将fresco的版本升级到了github上的最新版本,导致不兼容的问题,我解决的方法是将fresco的版本恢复了:“compile ‘com.facebook.fresco:fresco:0.13.0’”原创 2016-11-22 21:48:58 · 839 阅读 · 0 评论 -
java.lang.IllegalArgumentException: Wrong state class, expecting View State but received
今天在开发过程中遇到了以下的错误: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.support.v7.widget.RecyclerView$SavedState instead. This usually happens when tw原创 2017-07-19 14:28:03 · 1869 阅读 · 1 评论 -
Android studio Error:Illegal Capacity 错误
由于电脑没有正常关机,导致android studio 在打开项目的时候报Error:Illegal Capacity错误,查看了一下android studio的Idea.log文件,发现是由于“Caused by: org.gradle.api.GradleException: Could not read cache value from 'C:\Users\Hodo\.gradle\dae...原创 2018-08-22 10:19:11 · 1384 阅读 · 0 评论