我最近安装了ANSICON(x64)来为我的Rspec输出着色。之后我更改了我的默认控制台属性颜色以进行实验(通过右键单击cmd并更改“default”和“properties”)。现在我应该是绿色的Rspec测试是相同的颜色,我将控制台文本更改为(粉红色)。红色错误的Rspec测试打印出鲜红色,我的控制台文本已经改回(由我)灰色,但“绿色”测试仍然是粉红色的!
我尝试在网上研究这个,但我找不到关于这个特定问题的帖子。有没有人有一些见解?如何才能获得绿色的rspec测试颜色?
答案 0 :(得分:0)
重置控制台属性的简便方法是清除注册表项09-16 17:57:32.022 2441-2441/com.example.tobias.uebung1 E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.tobias.uebung1, PID: 2441
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tobias.uebung1/com.example.tobias.uebung1.main}: android.content.res.Resources$NotFoundException: String resource ID #0xfffffffd
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0xfffffffd
at android.content.res.Resources.getText(Resources.java:312)
at android.widget.TextView.setText(TextView.java:4417)
at com.example.tobias.uebung1.main.Main(main.java:483)
at com.example.tobias.uebung1.main.onCreate(main.java:100)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
。不要忘记在实验前使用HKEY_CURRENT_USER\Console
导出它。
此外,您可以尝试其他终端,如ConEmu或ConsoleZ。