java.lang.NoClassDefFoundError:android.security.MessageDigest

在我的应用程序中,我使用MessageDigest.getInstance("SHA-1")来获取SHA1,它可以在android 2.3中成功运行,但是它不能在android 4.0中运行,并且会显示下面的exception:

 FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.security.MessageDigest at com.screenshare.email.Utility.getConsistentDeviceId(Utility.java:597) at com.screenshare.exchange.SyncManager.getDeviceIdInternal(SyncManager.java:1079) at com.screenshare.exchange.SyncManager.getDeviceId(SyncManager.java:1045) at com.screenshare.exchange.SyncManager.onCreate(SyncManager.java:1813) at android.app.ActivityThread.handleCreateService(ActivityThread.java:2253) at android.app.ActivityThread.access$1600(ActivityThread.java:123) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4424) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) 

谁能解释这个案子?

Solutions Collecting From Web of "java.lang.NoClassDefFoundError:android.security.MessageDigest"