08-27 16:18:27.079: W/dalvikvm(27090): threadid=1: thread exiting with uncaught exception (group=0x411662a0)
08-27 16:18:27.079: E/AndroidRuntime(27090): FATAL EXCEPTION: main
08-27 16:18:27.079: E/AndroidRuntime(27090): java.lang.RuntimeException: Unable to start activity ComponentInfo{th.ac.yantakao2/th.ac.yantakao2.StudentActivity}: java.lang.RuntimeException: Binary XML file line #41: You must supply a layout_width attribute.
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.ActivityThread.access$700(ActivityThread.java:140)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.os.Handler.dispatchMessage(Handler.java:99)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.os.Looper.loop(Looper.java:137)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.ActivityThread.main(ActivityThread.java:4935)
08-27 16:18:27.079: E/AndroidRuntime(27090): at java.lang.reflect.Method.invokeNative(Native Method)
08-27 16:18:27.079: E/AndroidRuntime(27090): at java.lang.reflect.Method.invoke(Method.java:511)
08-27 16:18:27.079: E/AndroidRuntime(27090): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
08-27 16:18:27.079: E/AndroidRuntime(27090): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
08-27 16:18:27.079: E/AndroidRuntime(27090): at dalvik.system.NativeStart.main(Native Method)
08-27 16:18:27.079: E/AndroidRuntime(27090): Caused by: java.lang.RuntimeException: Binary XML file line #41: You must supply a layout_width attribute.
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:5756)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:5892)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.widget.LinearLayout$LayoutParams.<init>(LinearLayout.java:1815)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1727)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:58)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.view.LayoutInflater.rInflate(LayoutInflater.java:759)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
08-27 16:18:27.079: E/AndroidRuntime(27090): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:316)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.Activity.setContentView(Activity.java:1924)
08-27 16:18:27.079: E/AndroidRuntime(27090): at th.ac.yantakao2.StudentActivity.onCreate(StudentActivity.java:52)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.Activity.performCreate(Activity.java:5206)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
08-27 16:18:27.079: E/AndroidRuntime(27090): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
08-27 16:18:27.079: E/AndroidRuntime(27090): ... 11 more
ไฟล์ xml มันมีแค่นี้ครับไม่มีบรรทัดที่ 41 Code (XML)