android.view.InflateException:Binary XML file line #2: Error inflating class Solution
java.lang.runtimeexception: unable to start activity componentinfo{cn.xs8.app/ Cn.xs8.app.activity.news.xs8_news_splashactivity}: android.view.inflateexception: binary xml file line #2: error inflating classat Android.app.ActivityThread.performLaunchActivity (activitythread.java:2200) at Android.app.ActivityThread.handleLaunchActivity (activitythread.java:2262) at android.app.activitythread.access$600 (activitythread.java:148) at android.app.activitythread$ H.handlemessage (activitythread.java:1241) at android.os.handler.dispatchmessage (Handler.java:99) at Android.os.Looper.loop (looper.java:137) At android.app.activitythread.main (activitythread.java:5145) at java.lang.reflect.method.invokenative (Native method) At java.lang.reflect.method.invoke ( method.java:511) At com.android.internal.os.zygoteinit$methodandargscaller.run (ZygoteInit.java:802) at com.android.internal.os.zygoTeinit.main (zygoteinit.java:569) at dalvik.system.nativestart.main (native method) Caused by: android.view.InflateException: Binary XML file line #2: error Inflating classat android.view.layoutinflater.createview (layoutinflater.java:613) at Com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView (phonelayoutinflater.java:56) at Android.view.LayoutInflater.onCreateView (layoutinflater.java:660) at Android.view.LayoutInflater.createViewFromTag (layoutinflater.java:685) at Android.view.LayoutInflater.inflate (layoutinflater.java:466) at android.view.layoutinflater.inflate ( layoutinflater.java:396) at android.view.layoutinflater.inflate (layoutinflater.java:352) at Com.android.internal.policy.impl.PhoneWindow.setContentView (phonewindow.java:290) at Android.app.Activity.setContentView (activity.java:1943) at cn.xs8.app.activity.xs8_baseactivity.oncreate ( xs8_baseactivity.java:74) At cn.xs8.app.activity.news.xs8_news_splashactivity.oncreate (xs8_news_splashactivity.java:95) at Android.app.Activity.performCreate (activity.java:5174) at android.app.instrumentation.callactivityoncreate (instrumentation.java:1083) at android.app.activitythread.performlaunchactivity (ActivityThread.java:2164) ... 11 more
See a lot of data are not resolved, look carefully is not found resource files, see res/The resources file below, all in the drawable-mdpi/directory, suddenly an epiphany, suspect the location of the resource file does not exist, so will drawable-mdpi/ A copy of the resource file under the drawable-ldpi/directory, or report the above error, and then copy one to the drawable-hdpi/directory, solve the problem.
Another solution is to build a directory drawable/under Res/, and copy all the resource files under drawable-mdpi/to drawable/.
Android.view.InflateException:Binary XML File Solution