什么是“android.security.MessageDigest''?security、android、MessageDigest

由网友(倒贴货*)分享简介:一个数千客户在我的应用程序之一报告了一个错误。错误是:One of several thousand customers reported an error in one of my apps. The error is:java.lang.NoClassDefFoundError - android.securi...

一个数千客户在我的应用程序之一报告了一个错误。错误是:

One of several thousand customers reported an error in one of my apps. The error is:

java.lang.NoClassDefFoundError - android.security.MessageDigest

我不我的应用程序使用的类/方法。因为有与运行相同版本愉快地同成千上万的应用程序的谷歌映射键必须是好的。这里的堆栈跟踪:

I don't use that class/method in my apps. The Google Mapkey must be ok because there are thousands running the same app with the same version happily. Here's the stacktrace:

java.lang.NoClassDefFoundError: android.security.MessageDigest
at com.google.android.maps.KeyHelper.getSignatureFingerprint(KeyHelper.java:60)
at com.google.android.maps.MapActivity.createMap(MapActivity.java:552)
at com.google.android.maps.MapActivity.onCreate(MapActivity.java:422)
at xx.yyy.zzzz.MyMapActivity.onCreate(MyMapActivity.java:41)
at xx.yyy.zzzz.TheMap.onCreate(TheMap.java:89)
at android.app.Activity.performCreate(Activity.java:4465)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
at android.app.ActivityThread.access$600(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
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)

这是什么?

在此先感谢。

推荐答案

MessageDigest类是用于连接code /德code键一个辅助类,使用常用的方法,如MD5或SHA-1。

The MessageDigest class is a helper class used to encode/decode keys, using common methods such as MD5 or SHA-1.

看来,类android.security.MessageDigest从蜂窝和更高的Andr​​oid版本中删除,并且必须由java.security.MessageDigest中(see此页面)

It seems that the class android.security.MessageDigest was removed from Honeycomb and later releases of Android, and must be replaced by java.security.MessageDigest (see this page)

尝试下载谷歌地图API的最新版本,并重新构建应用程序与targetSDK设置为最高可用(截止到今天它应该是16 /果冻豆)。

Try downloading the latest version of the Google Maps API and rebuild your application with targetSDK set to the highest available (as of today it should be 16 / Jelly Bean).

阅读全文

相关推荐

最新文章