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

后端 未结 2 1332
小鲜肉
小鲜肉 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
    

提交回复
热议问题