Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/225.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ExpandAbleListView发生错误,无法实例化ExpandableListAdapter类型_Java_Android_Android Adapter - Fatal编程技术网

Java ExpandAbleListView发生错误,无法实例化ExpandableListAdapter类型

Java ExpandAbleListView发生错误,无法实例化ExpandableListAdapter类型,java,android,android-adapter,Java,Android,Android Adapter,代码和new之后的第二行有错误。。 关于expandablelistAdapter的构造函数。请帮帮我 错误是:无法实例化类型ExpandableListAdapter mExpandableListView = (ExpandableListView) findViewById(R.id.list); adapter = new ExpandableListAdapter(this,mExpandableListView,mGroupCollection); mExpandable

代码和
new
之后的第二行有错误。。 关于
expandablelistAdapter
的构造函数。请帮帮我

错误是:无法实例化类型ExpandableListAdapter

mExpandableListView = (ExpandableListView) findViewById(R.id.list);     
adapter = new ExpandableListAdapter(this,mExpandableListView,mGroupCollection); 
mExpandableListView.setAdapter(adapter);

更改适配器ExpandableListAdapter的名称这将解决您的问题。还要使用新名称更改构造函数