新的com.provider.JSSEProvider()无法解析符号提供者 [英] new com.provider.JSSEProvider() Cannot resolve symbole provider
本文介绍了新的com.provider.JSSEProvider()无法解析符号提供者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是android的新手,我正在按照有关如何使用JavaMail API发送电子邮件的教程进行操作,我已正确添加了必要的Jars,但我始终会遇到GmailSender类上无法解析符号提供者的情况,我尝试删除并添加罐子,但问题仍然存在.
I'm new to android, I was following a tutorial on how to send an Email using JavaMail API, I have add the necessary Jars properly but I always face the Cannot resolve symbol provider on the GmailSender Class, I tried removing and adding the jars but the problem still persist.
static {
Security.addProvider(new com.provider.JSSEProvider());
}
我想念什么吗?顺便说一下,我正在androidStudio上工作.
am I missing something ? i am working on androidStudio by the way.
推荐答案
上面的答案并不正确,只是不是很简单...所以让我详细说明一下Sharath在说什么.
The above answer isn't incorrect, just not very straightforward... so let me elaborate on what Sharath is saying.
Assume for a moment that your package name is "com.mycompany.projectname"
更改此:
static {
Security.addProvider(new com.provider.JSSEProvider());
}
对此:
static {
Security.addProvider(new com.mycompany.projectname.JSSEProvider());
}
这篇关于新的com.provider.JSSEProvider()无法解析符号提供者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文