要启动的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,即显示了两次包名,请问各位大哥这是什么原因?怎么解决呢?
解决方案 »
- android程序下如何发送大容量设备存储协议命令
- android2.1 之前的版本xml解析如何支持xpath?已解决,接分的来
- 请教关于Android在windows7下安装的问题
- android 中widget组件
- 使用Proguard混淆ksoap2时报错
- android手机联系人的归属地划分问题
- ScrollView动态插入Layout后,如何清空ScrollView里的内容,求大神!!!
- 我用android5.0提供的api,可以运行在5.0一下的手机中吗
- 请问, sendFile函数中,红色这一段代码是不是相当于线程,执行sendFile函数时,红色的代码在后台运行
- Android RecyclerView问题
- 无法安装ADT问题。
- 需要打开一个图片,怎么查找系统中已经安装的 可以打开的应用程序
配置文件了错了你看LogoActivity里面setContentView调用的是哪个.xml文件,找到.xml第6行,有ImageView控件的出错。
<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没报错啊,我也没看出哪有错误呀