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

后端 未结 2 1298
小鲜肉
小鲜肉 2021-01-22 07:25

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

相关标签:
2条回答
  • 2021-01-22 07:49

    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 讨论(0)
  • 2021-01-22 08:08

    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.

    0 讨论(0)
提交回复
热议问题