Notification的构造方法 Notification(int, CharSequence, long) 在API11之后就淘汰了,之后的API需要用Notification.Builder()方法: Notification notification = new Notification.Builder(context) .setContentText(CharSequence) .setSmallIcon(int) .setWhen(long) .build();…
这种错误是因为模型类中某个字段的条件约束为int类型,但是给了一个字符串类型,所以报错,找到那个模型类的字段,并对应修改就好了.…
□ 背景分析 在控制器方法中的一个参数允许为null值:public ActionResult GetByCategory(int? categoryId = null) 当把这里的categoryId传给服务类方法时 var products = service.LoadProductsByCategory((categoryId),报错. □ 解决方法 这里的categoryId默认是是null, 而服务类方法所需要的类型是int, 需要强转一下: var products = servic…
vue中报Class constructor FileManager cannot be invoked without 'new'.错处理: 原因:less 3.10 正式版报错 解决方法很简单,把package.json中 less版本的 ^ 去掉 重新安装一下之前可以用的版本应该就可以解决问题 ,虽然 锁定了版本 但是由于 ^, 所以会下载最新版本, 最新版本应该是有问题的.…
前端代码部署一直是自己打包之后将文件用FileZilla上传到服务器上,现在改用运维基于到k8s docker镜像的发布,前端打包报错如下: 经查资料,报错原因是less升级导致的Bug 尝试升级less-loader到5.0.0已解决上面问题.…
报错2019-04-24 12:06:46 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).2019-04-24 12:06:46 0 [Note] /usr/sbin/mysqld (mysqld 5.6.43) start…
for i in column1: x = int(i) s += xprint "sum:",s,"count:",len(column1)# round (s / len(column1), 3)print "avg",round (s / len(column1), 3) Traceback (most recent call last): File "C:/3/csv测试.py", line 26, in <mo…
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in D:\wyh\ecshop\includes\cls_template.php on line 300 1.错误原因:preg_replace() 函数中用到的修饰符 /e 在 PHP5.5.x 中已经被弃用了.如果你的PHP版本恰好是PHP5.5.X,那你的ECSHOP肯定就会报类似这样的错误. 2.解决…
自从JDK7更新之后,新增了二进制变量的表示,支持将整数类型用二进制来表示,用0b开头: 例如: byte b= (byte) 0b1000_0001; short s = (short) 0b1000_0000_0000_0001; 新手在这个时候会遇到一个问题,为啥byte b=0b100_00001会报错(cannot convert from int to byte) 而short b=0b100_00001又不会呢?既然java底层默认0b100_00001是int类型,为什么shor…
1.driver.findElement(By.name("wd")).sendKeys("selenium"); 报错:The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String) 原因:旧版本的Java不理解非随机变量参数 解决方法:在工程上点击右键选择Properties -> Java Compiler,选择…