草庐IT

Unexpectedly

全部标签

android - 错误 :Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

在Ubuntu中将androidstudio更新到1.1.0后总是显示此错误。我的logcat是:org.gradle.launcher.daemon.client.DaemonDisappearedException:Gradlebuilddaemondisappearedunexpectedly(itmayhavebeenkilledormayhavecrashed)**androidstudio1.0,0.8isworkingfine.**org.gradle.tooling.GradleConnectionException:Couldnotrunbuildactionusin

git clone 或者是vscode clone 时遇到the remote end hung up unexpectedly

fatal:theremoteendhungupunexpectedlyfatal:earlyEOFfatal:index-packfailed使用gitclone总是报错查看原因有三种可能:要么是缓存不够,要么是网络不行,要么墙的原因。如果是网络不行,可以配置git的最低速度和最低速度时间:gitconfig--globalhttp.lowSpeedLimit0gitconfig--globalhttp.lowSpeedTime999999【补充】文件太大的解决方法:当clone或者pushgit项目时,文件太大也会出现fatal:Theremoteendhungupunexpectedly

ios - ld : warning: section __DATA/__objc_imageinfo__DATA has unexpectedly large size

有人知道这个警告是什么意思吗?紧随其后的是错误:命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2失败,退出代码为1这是iPad的Xcode项目。我只在为模拟器而不是设备编译时看到这个。我已将静态库(*.a)链接到该项目,这就是我认为失败的地方。此外,它曾经在模拟器上运行没有问题,我不确定发生了什么变化。所有的编译器输出:Ld/Users/cduckering/Library/Developer/Xcode/DerivedData/IQ-bldfqilntfqfrccozykbqu

sockets - 为什么代码显示 "Error 354 (net::ERR_CONTENT_LENGTH_MISMATCH): The server unexpectedly closed the connection."

我正在用JAVA构建我的HTTPWEB服务器。如果客户端请求任何文件并且该文件在服务器的那个地方,那么服务器将该文件提供给客户端。我也做了这个代码,它工作正常。显示上述功能的代码部分,Filetarg=[CONTAINSONEFILE]PrintStreamps;InputStreamis=newFileInputStream(targ.getAbsolutePath());while((n=is.read(buf))>0){System.out.println(n);ps.write(buf,0,n);}但是现在为了优化我的代码,我用下面的代码替换了这段代码,InputStreami

swift - MailComposeViewController 错误 : unexpectedly found nil

我正在尝试将我发送的电子邮件的电子邮件地址和时间保存到表格View中。电子邮件发送正常,但每当我单击发送按钮时,我都会收到此错误(错误:在展开可选值时意外发现nil)。我不确定我的代码中的错误在哪里。发送按钮的代码://SentEmailsArrayvarsentEmails=[emailObject]()//DefaultemailvarsentEmailTo="email@email.com"//DismissButtonsforMailComposerfuncmailComposeController(controller:MFMailComposeViewController,

ios - 使用 NSCoding 将对象解码为 Int 时抛出的错误是 : fatal error: unexpectedly found nil while unwrapping an Optional value

我在Swift中有一组对象,我正在使用NSCoding将其保存到磁盘,以便下次运行应用程序时可以将它们读入内存。正在保存的项目是一个Volume对象数组。Volume的每个实例都有一个已设置的volumeNumberInt。Volume和QA类都继承自NSObject和NSCoding。如果应用程序在保存任何数据之前运行,它运行良好,当运行编码功能时,我的打印输出确认卷号似乎已正确保存(在我的示例中为1和2)。但是,当我重新加载应用程序时,它会退出并显示错误:fatalerror:在展开可选值时意外发现nil并突出显示:letvolumeNumber=aDecoder.decodeOb

ios - 拍摄 View 快照时出现 fatal error : unexpectedly found nil while unwrapping an Optional value

当我拍摄当前View的快照时,我的应用程序崩溃了,该View是UIViewController显示由UIPageViewController生成的照片。overridefuncviewDidLoad(){super.viewDidLoad()Utils.getImageAsync(photo!.url!,completion:{(photoView)->()in//CreateBasicViewComponentsself.view.addSubview(self.createHeaderView())self.view.addSubview(self.createScrollView

xcode - fatal error : unexpectedly found nil while unwrapping an Optional value (lldb)

我是代码新手,我不确定如何在这里摆脱我的可选值。我在某处读到这可能是我的问题。任何帮助都会很棒!我一直在关注本教程:https://www.youtube.com/watch?v=Qyy8pJd4IWU@IBActionfuncdropPhoto(sender:AnyObject){presentViewController(imagePicker,animated:true,completion:nil)}funcimagePickerController(picker:UIImagePickerController,didFinishPickingImageimage:UIImag

ios - Swift 2.2 - 更新 UILabel 抛出 "unexpectedly found nil while unwrapping an optional value"

我是iOS开发的新手,所以如果我遗漏了一些明显的东西,请原谅我。我有一个ViewController,其中包含一个subview,我在其中创建了一个小键盘,目前我想为小键盘View提供它自己的UIView子类,因为我想用它做一些不同的事情。现在小键盘只是从按下的键创建一个字符串,我已经设置了一个委托(delegate)来将该字符串传递到我想使用它的任何其他地方(尽管我也尝试过直接在View中访问原始输入带有leta=subview();label.text=a.rawInput的Controller)。每当我尝试将ViewController中的UILabel文本设置为subview的

ios - fatal error : unexpectedly found nil while unwrapping an Optional value (lldb)

我在Swift中使用UIViewController,但当我尝试保留数据并尝试检索它以返回应用程序时,我得到了它。importUIKitclassViewController:UIViewController{@IBOutletvarlinefields:[UITextField]!funcdataFilePath()->String{letpaths=NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory,NSSearchPathDomainMask.UserDomainMask,true