Hates Me. Force Close On Run. Android
all. I'm working on setting up a home screen layout for an Android app in which there is a 4x4 grid of launch icons. My current structure for this is like this:
Solution 1:
I had the same problem a few times myself and usually it is a missing layout property such as android:layout_height
or something. As it has already been mentioned it is advisable to just go ahead and check your logcat to see what exactly is causing the problem. A structure of a LinearLayout
or RelativeLayout
within a TableLayout
(i.e. TableRow
) however generally works out fine - even though I do not have the experience to say if it is best practice to do so.
Solution 2:
I get the same thing.
D/AndroidRuntime(1378):ShuttingdownVMW/dalvikvm(1378):threadid=1:threadexitingwithuncaughtexception(group=0x4001d800)E/AndroidRuntime(1378):FATAL EXCEPTION:mainE/AndroidRuntime(1378):java.lang.RuntimeException:UnabletostartactivityComponentInfo{...}:android.view.InflateException:BinaryXMLfileline#19: Error inflating class LinearyLayout
Not a very descriptive trace, but I guess we simply are not allowed to make our layouts like this.
Post a Comment for " Hates Me. Force Close On Run. Android"