Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android linearLayout中接收错误_Android - Fatal编程技术网

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">