//腾讯云cos
compile 'com.tencent.qcloud:cosxml:5.4.4'
//腾讯云服务
compile 'com.tencent.tac:tac-core:1.1.1'
//bugly
compile 'com.tencent.tac:tac-crash:1.1.1'
公司准备用腾讯云全家桶。然后介入了cos和bugly。单独用没有问题。但是混合起来出现了问题。
我找到了源头。
public void setSign(long signDuration, Set<String> parameters, Set<String> headers) {
COSXmlSignSourceProvider cosXmlSignSourceProvider = new COSXmlSignSourceProvider(signDuration);
cosXmlSignSourceProvider.parameters(parameters);
cosXmlSignSourceProvider.headers(headers);
this.signSourceProvider = cosXmlSignSourceProvider;
}
public COSXmlSignSourceProvider() {
headers = new HashSet<String>();
paras = new HashSet<String>();
realSignHeader = new HashSet<String>();
realSignParas = new HashSet<String>();
}
使用方法是有参数的。但是点进去是无参数构造方法。所以会出现这个问题。
相似问题