意图启动期间的java运行时异常 8 月,2 周 Questions & Answers 1775 我在每个屏幕的开头都会遇到这个例外,不管给出的高度是多少。 JAVAlang.RuntimeException:二进制XML文件行#25:必须提供布局高度属性
# 1 楼答案 您需要删除指定活动的属性parent=“android:Theme”。你的问题会解决的。请参考stackoverflow的this链接 如果您正在使用AndroidManifest中的android:theme="@android:style/Theme.Holo"。然后在安卓2.3设备或安卓2.2设备上运行你的应用程序,你会在启动时看到警告。一个可能的解决方案是here:
# 2 楼答案 xml文件中的每个视图都必须定义layout_height和layout_width属性。如果查看第25行的xml文件,您应该没有看到它。即: <LinearLayout layout_height="fill_parent" layout_width="fill_parent"/>
# 1 楼答案
您需要删除指定活动的属性parent=“android:Theme”。你的问题会解决的。请参考stackoverflow的this链接
如果您正在使用AndroidManifest中的
android:theme="@android:style/Theme.Holo"
。然后在安卓2.3设备或安卓2.2设备上运行你的应用程序,你会在启动时看到警告。一个可能的解决方案是here:# 2 楼答案
xml文件中的每个视图都必须定义layout_height和layout_width属性。如果查看第25行的xml文件,您应该没有看到它。即: