java - the trustAnchors parameter must be non-empty error while downloading Android SDK Build Tools 19.1 -


i upgraded android studio 1.0rc4. 1 of android projects used older buildtoolversion android studio suggested upgrade 19.1.0 while downloading android studio following errors:

loading sdk information... refresh sources:   failed fetch url https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: java.lang.runtimeexception: unexpected error: java.security.invalidalgorithmparameterexception: trustanchors parameter must non-empty   fetched add-ons list   refresh sources   failed fetch url https://dl-ssl.google.com/android/repository/repository-10.xml, reason: ssl java.lang.runtimeexception: unexpected error: java.security.invalidalgorithmparameterexception: trustanchors parameter must non-empty refresh sources:   failed fetch url https://dl-ssl.google.com/android/repository/repository-10.xml, reason: ssl java.lang.runtimeexception: unexpected error: java.security.invalidalgorithmparameterexception: trustanchors parameter must non-empty there nothing install or update. 

i saw several related questions on google , none related android studio , no solutions worked me.

below more information environment

file -> project structure    android sdk location: /applications/android studio.app/sdk    jdk location: /library/java/javavirtualmachines/jdk1.7.0_07.jdk/contents/home  $ java -version java version "1.7.0_07" java(tm) se runtime environment (build 1.7.0_07-b10) java hotspot(tm) 64-bit server vm (build 23.3-b01, mixed mode)  $ /usr/libexec/java_home -v matching java virtual machines (4):     1.8.0_25, x86_64:   "java se 8" /library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home     1.7.0_07, x86_64:   "java se 7" /library/java/javavirtualmachines/jdk1.7.0_07.jdk/contents/home     1.6.0_35-b10-428, x86_64:   "java se 6" /library/java/javavirtualmachines/1.6.0_35-b10-428.jdk/contents/home     1.6.0_35-b10-428, i386: "java se 6" /library/java/javavirtualmachines/1.6.0_35-b10-428.jdk/contents/home  /library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home 

solutions i've tried:

cd $(/usr/libexec/java_home -v 1.7)/jre/lib/security    ln -fsh /system/library/java/support/coredeploy.bundle/contents/home/lib/security/cacerts 

after above restart android studio same problem persists.

i had same error , ended solving doing these steps (on linux) :

you need find keystore java using , import in base64 cert of website trying access to:

for example on ubuntu, java certificates in /etc/ssl/certs/java/cacerts default password being "changeit".

to import cert had use keytool in way:

keytool -importcert -trustcacerts -alias myalias -file path_to_cert_file -keystore /etc/ssl/certs/java/cacerts

and use changeit password when asked; don't know java keystore (usually named cacerts) located on osx. of course need export https://dl-ssl.google.com cert browser.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -