Android linearLayout中接收错误
我的Android linearLayout中接收错误,android,Android,我的linearLayout说android:layou\u width和height都不见了,这是我的代码,如果有人能帮忙的话。我很感激 如果不起作用,请尝试清理项目并重新生成 如果不起作用,请尝试清理项目并重建您需要替换布局的第二行。您还提到了工具的xmlns:android。请按以下方式替换您的布局 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas
linearLayout
说android:layou\u width
和height都不见了,这是我的代码,如果有人能帮忙的话。我很感激
如果不起作用,请尝试清理项目并重新生成
如果不起作用,请尝试清理项目并重建您需要替换布局的第二行。您还提到了工具的
xmlns:android
。请按以下方式替换您的布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
您需要替换布局的第二行。您还提到了工具的
xmlns:android
。请按以下方式替换您的布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
此代码没有错误。显示整个代码或再次尝试重建项目。此代码没有错误。显示整个代码或再次尝试重建项目。如果它解决了您的问题,请标记为接受答案。你们可以在投票下面看到绿色的右键符号。所以它也会帮助其他人。若它解决了你们的问题,那个么请标记为接受答案。你们可以在选票下面看到绿色的右方符号。所以它也会帮助其他人。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">