StorageServiceAccountSample应用程序报告“未找到KeyStore JKS实现". [英] StorageServiceAccountSample application reports "KeyStore JKS implementation not found"

查看:89
本文介绍了StorageServiceAccountSample应用程序报告“未找到KeyStore JKS实现".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

StorageServiceAccountSample

HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();

导致找不到KeyStore JKS实现":

causes the "KeyStore JKS implementation not found":

W/System.err(20142): java.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore JKS implementation not found
W/System.err(20142):    at java.security.KeyStore.getInstance(KeyStore.java:119)
W/System.err(20142):    at com.google.api.client.util.SecurityUtils.getJavaKeyStore(SecurityUtils.java:48)
W/System.err(20142):    at com.google.api.client.googleapis.GoogleUtils.getCertificateTrustStore(GoogleUtils.java:74)
W/System.err(20142):    at com.google.api.client.googleapis.javanet.GoogleNetHttpTransport.newTrustedTransport(GoogleNetHttpTransport.java:55)

当我阅读Android不支持JKS时,应如何修改此方法以解决该问题?

As I read Android doesn't support JKS, how should I modify this method to work around it?

推荐答案

已替换

HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();

HTTP_TRANSPORT = AndroidHttp.newCompatibleTransport();

问题消失了.

这篇关于StorageServiceAccountSample应用程序报告“未找到KeyStore JKS实现".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆