我使用以下代码收到上述错误,有人可以告诉我我做错了什么吗?
ArrayAdapter<String>teamsAdapter = new ArrayAdapter<String>(MainActivity.this.android.R.layout.simple_list_item_checked, teams);
谢谢!
答案 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