写坦克大战配置文件
- 本人的电脑配置是mac ,m1 ,用的是IDEA 写的Java小游戏
- io 流还是比较轻松处理的,代码逻辑都对,问题就出在输入法上
- 出现Warning: the fonts “Times” and “Times” are not available for the Java logical font “Serif”, which may have unexpected appearance or behavior. Re-enable the “Times” font to remove this warning.查资料说,jdk没有Times的font ,无法读取配置文件的信息,然后就自己下载了
- 运行时,又无法出现提示输入“1:start,2:continue ”并且提示说imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
,Text input context does not respond to _valueForTIProperty:到网上查了一下,大致说无法识别,有人给出的建议是改输入法,不要有任何的不是英文的输入
2020-10-17 07:24:02.939 HelloAppCode[11611:207556] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2020-10-17 07:24:02.939 HelloAppCode[11611:207556] Text input context does not respond to _valueForTIProperty:
2020-10-17 07:24:02.939 HelloAppCode[11611:207556] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2020-10-17 07:24:02.939 HelloAppCode[11611:207556] Text input context does not respond to _valueForTIProperty:
- 于是,就把自己mac 电脑的keyboard ,inputsource 改成英文的,把中文删除,成功读入配置文件
- 一旦配置文件出错了,就需要重新给配置文件,不然就会出错