支付宝 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
来源:互联网 发布:c 对端口的访问被拒绝 编辑:程序博客网 时间:2024/05/22 06:43
在使用支付宝Demo时如果你的模拟器或者手机版本过高会崩溃通过查看Caused by 定位到错误如下:
01-06 02:52:12.350: W/System.err(1903): Caused by: java.lang.RuntimeException: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
看到这个蒙圈了鬼能知道啥意思!于是Debug定位具体代码发现出错代码段:
KeyFactory keyf = KeyFactory.getInstance(ALGORITHM);
查看源码也不知道错在哪里!那只能Google了,结论是Android高版本代替此代码段即可如下:
KeyFactory keyf = KeyFactory.getInstance(ALGORITHM, "BC");
遇到代码出错时应如何应对:
第一步:查看Log日志通过 Caused by 定位错误那里会告诉你出错的具体位置,
第二步:分析原因尝试自行解决,没有办法时自行Google
第三步:记录(好记性不如烂键盘),分享(与人方便与己方便)
更多内容访问个人站点点击直达
0 0
- 支付宝 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
- 调用支付宝时报这 java.lang.RuntimeException: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
- Android解决java.lang.RuntimeException: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
- 【Git笔记】"error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm"的解决方法
- error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
- 47902376209184:error:0D0DC0C6:asn1 encoding routines:ASN1_item_sign_ctx:digest and key type not supp
- android 新版支付宝遇到的问题 0D0680A8
- CertEnroll::CX509Enrollment::p_InstallResponse:ASN1 bad tag value met. 0x8009310b
- CertEnroll::CX509Enrollment::p_InstallResponse:ASN1 bad tag value met. 0x8009310b
- 支付宝生成应用公钥(支付出现der input, integer tag error)
- iOS 引入支付宝 缺少 #include <openssl/asn1.h>
- iOS 支付宝集成中遇到的asn1 not found
- iOS 引入支付宝 缺少 #include <openssl/asn1.h>
- iOS 引入支付宝 缺少 #include <openssl/asn1.h>
- 支付宝SDK <openssl/asn1.h> file not found
- iOS 引入支付宝 缺少 #include <openssl/asn1.h>
- iOS开发 引入支付宝 缺少 #include <openssl/asn1.h>
- iOS 引入支付宝 缺少 #include <openssl/asn1.h>
- 卡尔曼滤波
- JQuery上
- MIT牛人解说数学体系
- golang noblocking send
- Visual Studio的使用技巧
- 支付宝 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
- poi处理excel遇到的坑
- CRC算法
- JS对省市按首字母排序
- Spring Data REST入门(三):自定义配置
- Hadoop+HBase+ZooKeeper三者关系与安装配置
- iOS UISearchBar简介 —— HERO博客
- css3渐变之条纹背景
- 为Linux命令设置快捷键