开发者

How to download Google APIs using Android SDK and AVD manager (as it gives SHA-1 MessageDigest not available)?

I cannot download the Google APIs using the Android SDK and AVD manager. 开发者_开发问答Whenever trying I get the error below:

SHA-1 MessageDigest not available

Any thoughts?


I found either a work around or the right way to do this in a Windows XP environment:

If I only followed this to the letter:

If you are developing in Eclipse with ADT, you can select Window >Android SDK and AVD Manager.

It's working now.


For "normal" (I mean JDK / JRE for Java EE development, dont know about android) Java applications, the following holds: If there is such a mistake as "SHA-1 not available" you to choose the right security provider.

There should be a file $JAVA_JDK/jre/lib/security/java.security in which you have to choose a useful provider. On my machine the paragraph looks like this

# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider 
security.provider.2=sun.security.rsa.SunRsaSign
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
security.provider.6=com.sun.security.sasl.Provider
security.provider.7=org.jcp.xml.dsig.internal.dom.XMLDSigRI
security.provider.8=sun.security.smartcardio.SunPCSC
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜