Unable to start activity ComponentInfo{com.example.administrator.myapplication/com.example.administr

Posted layfork

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to start activity ComponentInfo{com.example.administrator.myapplication/com.example.administr相关的知识,希望对你有一定的参考价值。

本来就是把fragment写死在activity的xml模板里面,结果报了这个错误, Unable to start activity ComponentInfo{com.example.administrator.myapplication/com.example.administrator.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #0: Binary XM,,下面找到了解决方法

[email protected] must implement OnFragmentInteractionListener

 

Mainactivity必须实现OnFragmentInteractionListener这个接口

以上是关于Unable to start activity ComponentInfo{com.example.administrator.myapplication/com.example.administr的主要内容,如果未能解决你的问题,请参考以下文章

Unable to start activity ComponentInfo{com.example.administrator.myapplication/com.example.administr

Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}

bug_ _java.lang.RuntimeException: Unable to start activity ComponentInfo{包名/类名}

java.lang.RuntimeException: Unable to start activity ComponentInfo{包名/类名}

Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: java.lang.NullPoi

java.lang.RuntimeException: Unable to start activity ComponentInfo{XXX}: Error inflating class andro