后台邮件无法在我的应用上运行 [英] Backgroundmail is not working on my app
问题描述
下面的代码不适用于我的日食
获取错误消息为无法解析为某种类型
BackgroundMail bm = new BackgroundMail(context);
bm.setGmailUserName(chhavimobisoft@gmail.com) ;
bm.setGmailPassword(chhavi2014);
bm.setMailTo(chhavimobisoft@gmail.com);
bm.setFormSubject (msg);
bm.setFormBody(body);
bm.setProcessVisibility(false);
bm.send();
我尝试了什么:
i试用以下配置
a Android 7
b eclipse版本:Juno服务版本1
构建ID:20120920-0800
below code is not working on my eclipse
Getting error message as "cannot be resolved to a type"
BackgroundMail bm = new BackgroundMail(context);
bm.setGmailUserName("chhavimobisoft@gmail.com");
bm.setGmailPassword("chhavi2014");
bm.setMailTo("chhavimobisoft@gmail.com");
bm.setFormSubject(msg);
bm.setFormBody(body);
bm.setProcessVisibility(false);
bm.send();
What I have tried:
i tried with below configuration
a Android 7
b eclipse Version: Juno Service Release 1
Build id: 20120920-0800
推荐答案
嗯,这个问题已经在下面的线程中的stackoverflow中得到答案 -
Well, this question has already an answer in stackoverflow in the following thread-
右键单击您的项目名称。单击属性。单击Java Build Path。单击添加类文件夹。然后选择你的班级。或者,添加罐子应该可以工作,尽管你声称你尝试过。此外,你试过把它关掉再重新开启吗? (重启Eclipse)。
Right click your project name. Click properties. Click Java Build Path. Click on Add Class Folder. Then choose your class. Alternatively, add jars should work although you claim that you attempted that. Also, "have you tried turning it off and back on again"? (Restart Eclipse).
java - Eclipse错误。 ..无法解析为某种类型 - Stack Overflow [ ^ ]
希望,它有帮助:)
java - Eclipse error ... cannot be resolved to a type - Stack Overflow[^]
Hope, it helps :)
这篇关于后台邮件无法在我的应用上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!