要启动的activity为LogoActivity,所在包为com.clevertour.ui,我更改了Androidmainfext.xml文件,运行时出现如下错误
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.clevertour.ui/com.clevertour.ui.LogoActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class android.widget.ImageView,即显示了两次包名,请问各位大哥这是什么原因?怎么解决呢?

解决方案 »

  1.   

    Binary XML file line #6
    配置文件了错了你看LogoActivity里面setContentView调用的是哪个.xml文件,找到.xml第6行,有ImageView控件的出错。
      

  2.   

    我调用是就是这个文件<?xml version="1.0" encoding="UTF-8"?>
    <LinearLayout android:orientation="vertical" android:id="@+id/loginRoot"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android">    <ImageView
            android:id="@+id/iv_login_animation"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="center"
            android:contentDescription="@string/pictureDescription"
            android:src="@anim/login_animation"
            />
        
    </LinearLayout>
    但是eclipse没报错啊,我也没看出哪有错误呀
      

  3.   

    clean过了,不行,请问还有别的方法吗?这是什么原因呀
      

  4.   

    将Androidmainfext.xml中Activity配置中com.clevertour.ui.LogoActivity修改为.LogoActivity即可,包名配置重复了