星期六, 11月 17, 2012
更新git版本
error: Exited sync due to gc errors
這代表你機器上安裝的git工具版本需要更新了。
如果嘗試以下命命更新git
sudo apt-get install git-core
可是系統卻說已經是最新版,這時候可以執行以下命令加入新的APT repositoty並安裝新版本的git-core
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git-core
星期一, 1月 04, 2010
Keystoke causes android.process.acore to crash
After replacing the touchscreen device with a LCD and keyboard, I find android.process.acore will crash while trying to type with the keyboard. This bug also occurs when executing Contacts and dialer applications. According to the messages shown by logcat, this bug is resulted from failing to load resource required by Android.
According to this description, Android system cannot find the required resources for notouch device. So, we can fix this bug by copying each folder ending with -finger to the one ending with -notouch.
D/AndroidRuntime( 760): Shutting down VM
W/dalvikvm( 760): threadid=3: thread exiting with uncaught exception (group=0x4000fe70)
E/AndroidRuntime( 760): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 760): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/com.android.contacts.DialtactsActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030005
E/AndroidRuntime( 760): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
E/AndroidRuntime( 760): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
E/AndroidRuntime( 760): at android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime( 760): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
E/AndroidRuntime( 760): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 760): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 760): at android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime( 760): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 760): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 760): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 760): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 760): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 760): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030005
E/AndroidRuntime( 760): at android.content.res.Resources.getValue(Resources.java:846)
E/AndroidRuntime( 760): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1796)
E/AndroidRuntime( 760): at android.content.res.Resources.getLayout(Resources.java:685)
E/AndroidRuntime( 760): at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
E/AndroidRuntime( 760): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 760): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:309)
E/AndroidRuntime( 760): at android.app.Activity.setContentView(Activity.java:1626)
E/AndroidRuntime( 760): at com.android.contacts.DialtactsActivity.onCreate(DialtactsActivity.java:73)
E/AndroidRuntime( 760): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime( 760): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
E/AndroidRuntime( 760): ... 11 more
I/Process ( 556): Sending signal. PID: 760 SIG: 3
I/dalvikvm( 760): threadid=7: reacting to signal 3
References:
http://d.android.com/guide/topics/resources/index.html

