Android App Crashes on FragmentTransaction.replace
问题 I'm attempting to create a dynamic UI using the support.v4 library to insert fragments into a framelayout I have defined for my main activity. Here is my activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:baselineAligned="false" > <LinearLayout android:layout_width="0dp" android:layout_height="fill