草庐IT

time_created

全部标签

Could not create parent directory for lock file

今天做开发的时候上午还好好的项目,导了写东西后下午构建的时候就报这个错。Couldnotcreateparentdirectoryforlockfile这个错多半是缓存gradle文件的权限有问题总结了一下,有几个方法:1、terminal中 清除缓存./gradlewclean 然后  ./gradlew assembleDebug   2、Invalidatecaches清除androidstudio缓存重启3退出,以管理员身份运行androidstudio。

iOS : Switching between 12/24 hour times from strings

有趣的问题让我很困惑。我从服务器到设备接收字符串时间。然后我将其转换为NSDate。当设备设置为显示24小时时间时,生活很好。现在我正在一台设置为12小时的设备上对其进行测试。一切都停止了。日期返回为空我第一次有NSDateFormatter*dateFormat=[[NSDateFormatteralloc]init];[dateFormatsetDateFormat:@"HH:mm"];self.startTime=[dateFormatdateFromString:(NSString*)self.startTime];非常适合显示24小时制而非12小时制的设备。然后我尝试了NSD

iOS : Switching between 12/24 hour times from strings

有趣的问题让我很困惑。我从服务器到设备接收字符串时间。然后我将其转换为NSDate。当设备设置为显示24小时时间时,生活很好。现在我正在一台设置为12小时的设备上对其进行测试。一切都停止了。日期返回为空我第一次有NSDateFormatter*dateFormat=[[NSDateFormatteralloc]init];[dateFormatsetDateFormat:@"HH:mm"];self.startTime=[dateFormatdateFromString:(NSString*)self.startTime];非常适合显示24小时制而非12小时制的设备。然后我尝试了NSD

hive read time out

hive-jdbc版本:2.3.9报错信息如下:问题定位:客户端的socket连接读超时,默认超时时间为30秒,需要在应用端增大读超时时间。解决方案:1)hiveConnection在使用socket连接时,设置了超时时间为30秒,超时时间较短,在运行稍微复杂点的SQL时,就会导致超时。如下图。  2) hiveConnection的socket超时时间通过loginTimeout进行设置,而loginTimeout读取的DriverManager的超时时间,因此,在创建hive连接时需要设置DriverManage的loginTimeout属性。如下图。3)hiveConnection通常使

ios - "The app must ask for a basic read permission at install time"

我正在使用iOS内置框架进行连接。请求"publish_stream"权限后,FB返回错误:ErrorDomain=com.apple.accountsCode=7"TheFacebookservercouldnotfulfillthisaccessrequest:Theappmustaskforabasicreadpermissionatinstalltime."UserInfo=0x145ad6a0{NSLocalizedDescription=TheFacebookservercouldnotfulfillthisaccessrequest:Theappmustaskforaba

ios - "The app must ask for a basic read permission at install time"

我正在使用iOS内置框架进行连接。请求"publish_stream"权限后,FB返回错误:ErrorDomain=com.apple.accountsCode=7"TheFacebookservercouldnotfulfillthisaccessrequest:Theappmustaskforabasicreadpermissionatinstalltime."UserInfo=0x145ad6a0{NSLocalizedDescription=TheFacebookservercouldnotfulfillthisaccessrequest:Theappmustaskforaba

iphone - Xcode 4 核心数据 : How to use fetched property created in Data Model editor

如何在Xcode4中实现获取的属性?这是两个实体的示例,一本书和一个页面:我按照此处的指南创建了一个提取属性,该属性使用变量$FETCH_SOURCE引用来自源实体的值:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdRelationships.html现在,一旦我保存了这个并生成了源代码,我就得到了这个://Book.h#import#import@classPages;@interfaceBook:NSManagedObject{@private}@

iphone - Xcode 4 核心数据 : How to use fetched property created in Data Model editor

如何在Xcode4中实现获取的属性?这是两个实体的示例,一本书和一个页面:我按照此处的指南创建了一个提取属性,该属性使用变量$FETCH_SOURCE引用来自源实体的值:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdRelationships.html现在,一旦我保存了这个并生成了源代码,我就得到了这个://Book.h#import#import@classPages;@interfaceBook:NSManagedObject{@private}@

git clone 时Failed to connect to github.com port 443:connection timed out 怎么办

第一种办法:设置全局代理设置全局代理:gitconfig--globalhttp.proxyhttp://127.0.0.1:1080gitconfig--globalhttps.proxyhttp://127.0.0.1:1080再次尝试,一般情况下可以正常clone。如果遇到以下报错:Failedtoconnectto127.0.0.1port1080after2070ms:Connectionrefused请采取第二种方法。第二种方法:修改hosts文件(以windows系统为例)1.打开https://github.com.ipaddress.com/如下图: 记录IP地址(可能与上图

CS0656 C# 缺少编译器要求的成员“Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create”

刚刚由于在代码中使用了dynamic动态类型,项目就起不来了报了如下错误:CS0656C#缺少编译器要求的成员“Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create”解决办法如下:1.在包管理器中安装"Microsoft.CSharp"或者通过dotnet命令dotnetaddpackageMicrosoft.CSharp--version4.7.02.不使用dynamic类型。定义需要的类型