草庐IT

EXEC_BAD_ACCESS

全部标签

class - 错误 "Can' t access this in a field initializer 是什么意思”?

我想在flutter中创建一个显示警告框的类,它可以将标题和内容作为输入来显示错误框。但是当我使用它来访问AlertDialog()中同一类的变量时,调试控制台说“无法在字段初始值设定项中访问它”。import'package:flutter/material.dart';voidmain()=>runApp(MaterialApp(home:Alert("SayHy","Hy"),));classAlertextendsStatelessWidget{finalStringtitlea;finalStringcontexta;Alert(this.titlea,this.contex

【git push指令提交项目报错】 fatal: unable to access ‘https://github.com/xxxxx/xxx.git/‘: OpenSSL SSL_read: Co

在用gitpush指令提交项目时,由于网络等各种原因时常报错,针对以下几个问题,本文提供解决方法,亲测有效!问题一:fatal:unabletoaccess'https://github.com/xxxxx/xxx.git/':OpenSSLSSL_read:Connectionwasreset,errno10054问题二:fatal:unabletoaccess'https://github.com/xxxxx/xxx.git/':Failedtoconnecttogithub.comport443after21086ms:Timedout两个问题都可以以下尝试1.关闭网络代理(比如关闭网络

android - Flutter FAILURE : Build failed with an exception. FormatException: Bad UTF-8 encoding 0xfd (at offset 52)

当我尝试在VsCode中运行我的flutter应用程序时。我遇到了这个错误。在我最近的应用程序中,一切正常。在这个应用程序中,我只完成了添加firebase连接。在flutterdoctor中有没有错误,也没有使用土耳其语字符。 最佳答案 已解决。这是因为我在程序文件中构建了flutter文件夹。你不应该那样做。 关于android-FlutterFAILURE:Buildfailedwithanexception.FormatException:BadUTF-8encoding0xfd

android - Flutter FAILURE : Build failed with an exception. FormatException: Bad UTF-8 encoding 0xfd (at offset 52)

当我尝试在VsCode中运行我的flutter应用程序时。我遇到了这个错误。在我最近的应用程序中,一切正常。在这个应用程序中,我只完成了添加firebase连接。在flutterdoctor中有没有错误,也没有使用土耳其语字符。 最佳答案 已解决。这是因为我在程序文件中构建了flutter文件夹。你不应该那样做。 关于android-FlutterFAILURE:Buildfailedwithanexception.FormatException:BadUTF-8encoding0xfd

fatal: unable to access ‘https://github.com/......‘: Failed to connect to github.com

1、在git内重置proxygitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxy2、在cmd内执行ipconfig/flushdns清理DNS缓存ipconfig/flushdns

MySQL登录时出现 Access denied for user“xxx” ‘‘@‘xxx.xxx.xxx.xxx‘ (using password: YES) 的原因及解决办法

    我自己的情况是我操作navicat连接服务器上的数据库,新建了一个用户然后给了这个用户一个数据库的权限,但是连接的时候就出现                                             [28000][1045]Accessdeniedforuser'xxxxxxx'@'xxxxx'(usingpassword:YES)后来发现我需要给这个用户设置一个远端登录权限,就像下图圈出来那样,新建相同的用户,host那里写成%。 另外我发现navicat无论你设置什么密码,都会最后显示你的密码长度为8位。 

Nginx 502 Bad Gateway 错误的原因及解决方法

Nginx502BadGateway错误的原因及解决方法多数是后端问题也就是PHP的问题,简单的情况可以刷新(不是一般的刷新哦,Ctrl+F5 强制刷新)解决。在php服务当中,有两个参数非常的重要:max_requestst和max_children,具体的原因必须要查看日志才可以弄明白!1、检查PHP基础设置修改/www/server/php/80/etc/php-fpm.confrequest_terminate_timeout=100 ,把100改成5;php执行超时,修改/usr/local/php/etc/php.ini将max_execution_time 为300;2、Fast

Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 Bad request

今天通过nginx代理下载pdf报这个错,网上查了很多资料,说的大部分都是Androidstudio这个的解决办法,几乎没有针对nginx的处理,部分说是需要配hosts,配了hosts也没用,有一些说是要增加proxy_set_headerHost$http_host;这个配置,也不能解决我的问题,这边记录一下针对我这边出现问题处理方式。代码相对简单URLurl=newURL(urlStr);HttpURLConnectionconn=(HttpURLConnection)url.openConnection();//设置超时间为5秒conn.setConnectTimeout(5*1000

【异常解决】postman请求提示Full authentication is required to access this resource

Fullauthenticationisrequiredtoaccessthisresource解决方案一、背景描述二、解决方案一、背景描述在使用postman测试接口时,该接口需要在Header中传入access_token,实际上也在请求的Header中添加上了access_token参数,但是服务端还是返回401错误码,提示未登录,Fullauthenticationisrequiredtoaccessthisresource。二、解决方案然后将获取到的access_token输入到这个Token中去,如下图所示:再次发送请求,即可返回成功,并获取到数据了。本文完结!

【获取微信小程序openLink】“errcode”:40001,“errmsg”:“invalid credential, access_token is invalid or not latest

【获取微信小程序openLink】{“errcode”:40001,“errmsg”:“invalidcredential,access_tokenisinvalidornotlatestrid:6369edea-3bf9b72c-0471fe53”}注意的问题点1.确保你accessToken是有效的2.业务场景:获取微信的openLink,获取参数t,并将参数t值拼接到h5,实现发送短信给用户,用户通过短信跳转H5,然后通过H5登录小程序。3.这点很重要!!!!!!!!不要去多次调用openLink代码参考:StringreturnOpenUrl=StrUtil.EMPTY;//获取ope