android无法解析或者不是字段,android开发

时间:2014-07-16 09:18:21

标签: java android

我使用以下代码收到上述错误,有人可以告诉我我做错了什么吗?

ArrayAdapter<String>teamsAdapter = new ArrayAdapter<String>(MainActivity.this.android.R.layout.simple_list_item_checked, teams);

谢谢!

1 个答案:

答案 0 :(得分:1)

ArrayAdapter<String> teamsAdapter = new ArrayAdapter<String>
(MainActivity.this,android.R.layout.simple_list_item_checked, teams);
                  ^ here you have dot in your declaration