Android 致命异常:主进程:com.example.admin.clucky,PID:1864
致命异常:主 进程:com.example.admin.clucky,PID:1864 java.lang.RuntimeException:无法启动活动组件信息{com.example.admin.clucky/com.example.admin.clucky.fetaldevelopments2}:android.view.InflateException:二进制XML文件行#189:二进制XML文件行#189:膨胀类时出错 原因:java.lang.OutOfMemoryError:无法分配9082812字节的分配,其中包含8445752个可用字节和8MB的内存Android 致命异常:主进程:com.example.admin.clucky,PID:1864,android,Android,致命异常:主 进程:com.example.admin.clucky,PID:1864 java.lang.RuntimeException:无法启动活动组件信息{com.example.admin.clucky/com.example.admin.clucky.fetaldevelopments2}:android.view.InflateException:二进制XML文件行#189:二进制XML文件行#189:膨胀类时出错 原因:java.lang.OutOfMemoryError:无法分
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="48dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Fetal development week by week"
android:id="@+id/textView23"
android:layout_gravity="center_horizontal"
android:textAlignment="center"
android:textColor="#FF060505"
android:textSize="20dp"
android:textStyle="bold|italic"
android:typeface="monospace"
android:layout_weight="1" />
<ImageView
android:layout_width="match_parent"
android:layout_height="160dp"
android:id="@+id/imageView23"
android:background="@drawable/f21"
android:layout_weight="1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/textView18"
android:text="21 weeks
请检查fetaldevelopments2二进制XML文件行#189。您很可能在XML中有错误。发布布局。二进制XML文件#189表示我可以检查fetaldevelopment.XML文件吗
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/textView19"
android:text="22 weeks
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/textView20"
android:text="23 weeks
</LinearLayout>
</ScrollView>
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.admin.clucky/com.example.admin.clucky.fetaldevelopments2}: android.view.InflateException: Binary XML file line #189: Binary XML file line #189: Error inflating class