无论屏幕高度如何,我都会在每个屏幕的开头看到此异常。
java.lang.RuntimeException:二进制XML文件第25行:您必须提供layout_height属性。
最佳答案
您需要删除指定活动的属性parent =“ android:Theme”。您的问题将会解决。请参考stackoverflow的this链接
如果您在AndroidManifest.xml中使用android:theme="@android:style/Theme.Holo"
,然后在Android 2.3设备或Android 2.2设备上运行应用程序,则在启动时会看到该警告。可能的解决方法是here: