微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > ARM技术讨论 > 一个android错误,你看的懂?

一个android错误,你看的懂?

时间:10-02 整理:3721RD 点击:
最近在调试一个电阻屏,在locat窗口输出错误信息,但这个BUG不知道怎么修复。求指点

D/AndroidRuntime( 3305):

D/AndroidRuntime( 3305): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<

D/AndroidRuntime( 3305): CheckJNI is OFF

D/dalvikvm( 3305): Trying to load lib libjavacore.so 0x0

D/dalvikvm( 3305): Added shared lib libjavacore.so 0x0

D/dalvikvm( 3305): Trying to load lib libnativehelper.so 0x0

D/dalvikvm( 3305): Added shared lib libnativehelper.so 0x0

I/ActivityManager( 2118): No longer want com.google.android.inputmethod.latin.dictionarypack (pid 2654): empty #17

D/AndroidRuntime( 3305): Calling main entry com.android.commands.pm.Pm

D/AndroidRuntime( 3305): Shutting down VM

W/dalvikvm( 3305): threadid=1: thread exiting with uncaught exception (group=0x412df930)

D/dalvikvm( 3305): Note: class Landroid/app/ActivityManagerNative; has 157 unimplemented (abstract) methods

E/( 3305): Unknown binder error code. 0xfffffff7

E/AndroidRuntime( 3305): *** FATAL EXCEPTION IN SYSTEM PROCESS: main

E/AndroidRuntime( 3305): java.lang.NullPointerException

E/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 getService

E/ServiceManager( 3305): android.os.RemoteException: Unknown binder error code. 0xfffffff7

E/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: 9

E/AndroidRuntime( 3305): Error reporting crash

E/AndroidRuntime( 3305): java.lang.NullPointerException

E/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 art

E/MetadataRetrieverClient( 1226): failed to extract an album art

E/MetadataRetrieverClient( 1226): failed to extract an album art

D/MediaScannerService( 2373): done scanning volume internal

I/SurfaceFlinger( 1223): GraphicBufferAlloc::createGraphicBuffer

I/SurfaceFlinger( 1223): GraphicBufferAlloc::createGraphicBuffer

D/Finsky  ( 3160): [1] 5.onFinished: Installation state replication succeeded.

I/AudioService( 2118):  AudioFocus  abandonAudioFocus() fromandroid.media.AudioManager@413a8388com.android.music.MediaPlaybackService$3@413a6fa8

V/MusicFXControlPanelReceiver( 3292): onReceive

V/MusicFXControlPanelReceiver( 3292): Action: android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION

V/MusicFXControlPanelReceiver( 3292): Package name: com.android.music

V/MusicFXControlPanelReceiver( 3292): Audio session: 5

V/MusicFXControlPanelEffect( 3292): closeSession(android.app.ReceiverRestrictedContext@413a6dc8, com.android.music, 5)


参考了http://blog.csdn.net/qinjuning/article/details/7085493的分析,
想了想,只想到如下解决办法
android.os.Process.killProcess(android.os.Process.myPid());
将服务杀掉并重启。

我也看了他那文档,但具体方法自己不会弄,我不懂安卓那块

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top