最近在调试一个电阻屏,在locat窗口输出错误信息,但这个BUG不知道怎么修复。求指点
D/AndroidRuntime( 3305):D/AndroidRuntime( 3305): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<D/AndroidRuntime( 3305): CheckJNI is OFFD/dalvikvm( 3305): Trying to load lib libjavacore.so 0x0D/dalvikvm( 3305): Added shared lib libjavacore.so 0x0D/dalvikvm( 3305): Trying to load lib libnativehelper.so 0x0D/dalvikvm( 3305): Added shared lib libnativehelper.so 0x0I/ActivityManager( 2118): No longer want com.google.android.inputmethod.latin.dictionarypack (pid 2654): empty #17D/AndroidRuntime( 3305): Calling main entry com.android.commands.pm.PmD/AndroidRuntime( 3305): Shutting down VMW/dalvikvm( 3305): threadid=1: thread exiting with uncaught exception (group=0x412df930)D/dalvikvm( 3305): Note: class Landroid/app/ActivityManagerNative; has 157 unimplemented (abstract) methodsE/( 3305): Unknown binder error code. 0xfffffff7E/AndroidRuntime( 3305): *** FATAL EXCEPTION IN SYSTEM PROCESS: mainE/AndroidRuntime( 3305): java.lang.NullPointerExceptionE/AndroidRuntime( 3305): at com.android.commands.pm.Pm.preInstall(Pm.java:785)E/AndroidRuntime( 3305): at com.android.commands.pm.Pm.run(Pm.java:114)E/AndroidRuntime( 3305): at com.android.commands.pm.Pm.main(Pm.java:77)E/AndroidRuntime( 3305): at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)E/AndroidRuntime( 3305): at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)E/AndroidRuntime( 3305): at dalvik.system.NativeStart.main(Native Method)E/ServiceManager( 3305): error in getServiceE/ServiceManager( 3305): android.os.RemoteException: Unknown binder error code. 0xfffffff7E/ServiceManager( 3305): at android.os.BinderProxy.transact(Native Method)E/ServiceManager( 3305): at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)E/ServiceManager( 3305): at android.os.ServiceManager.getService(ServiceManager.java:55)E/ServiceManager( 3305): at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:1832)E/ServiceManager( 3305): at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:1830)E/ServiceManager( 3305): at android.util.Singleton.get(Singleton.java:34)E/ServiceManager( 3305): at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:74)E/ServiceManager( 3305): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)E/ServiceManager( 3305): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)E/ServiceManager( 3305): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)E/ServiceManager( 3305): at dalvik.system.NativeStart.main(Native Method)I/Process ( 3305): Sending signal. PID: 3305 SIG: 9E/AndroidRuntime( 3305): Error reporting crashE/AndroidRuntime( 3305): java.lang.NullPointerExceptionE/AndroidRuntime( 3305): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)E/AndroidRuntime( 3305): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)E/AndroidRuntime( 3305): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)E/AndroidRuntime( 3305): at dalvik.system.NativeStart.main(Native Method)E/MetadataRetrieverClient( 1226): failed to extract an album artE/MetadataRetrieverClient( 1226): failed to extract an album artE/MetadataRetrieverClient( 1226): failed to extract an album artD/MediaScannerService( 2373): done scanning volume internalI/SurfaceFlinger( 1223): GraphicBufferAlloc::createGraphicBufferI/SurfaceFlinger( 1223): GraphicBufferAlloc::createGraphicBufferD/Finsky ( 3160): [1] 5.onFinished: Installation state replication succeeded.I/AudioService( 2118): AudioFocus abandonAudioFocus() fromandroid.media.AudioManager@413a8388com.android.music.MediaPlaybackService$3@413a6fa8V/MusicFXControlPanelReceiver( 3292): onReceiveV/MusicFXControlPanelReceiver( 3292): Action: android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSIONV/MusicFXControlPanelReceiver( 3292): Package name: com.android.musicV/MusicFXControlPanelReceiver( 3292): Audio session: 5V/MusicFXControlPanelEffect( 3292): closeSession(android.app.ReceiverRestrictedContext@413a6dc8, com.android.music, 5)
想了想,只想到如下解决办法
android.os.Process.killProcess(android.os.Process.myPid());
将服务杀掉并重启。
一周热门 更多>