protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
SupportMapFragment fragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
mGoogleMap = fragment.getMap();
handleIntent(getIntent());
我有两个问题
setContenView(R.Layout.activity_main)
中的
问题是R cannot be resolved to a variable
SupportMapFragment fragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
中的
问题是
此行有多个标记
无法解析SupportMapFragment 到一个类型
地图无法解析或不是字段
无法解析SupportMapFragment 到一个类型
请帮助我,
thanx
答案 0 :(得分:0)
package testMail;
public class testMail {
public static void main(String[] args)throws Exception {
String hostname="smtp.example.com";
int port=2525;
String username="nawale.pandu@gmail.com";
String password="kskcpz09";
Mailer mailer=new Mailer(hostname,port,username,password);
/* error
Multiple markers at this line
- Mailer cannot be resolved
to a type
- Mailer cannot be resolved
to a type */
}
}