I recently got this warning in Layout
and manifest files. I have attached those images below just check those in case for further clarification.
我最近在布局和清单文件中收到了此警告。我已将这些图片附在下面,只是检查一下,以便进一步澄清。
The problem is I'm getting Namespace " is not bound warning and I cannot use the autocomplete code for xml files which can be generally used in android studio.Please help for this issue. The unknown xml attribute warning is displayed for each and every android attribute.
问题是我得到Namespace“没有绑定警告,我不能使用自动完成代码的xml文件,这通常可以在android studio中使用。请帮助解决这个问题。显示每个和每个android的未知xml属性警告属性。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/blue"
>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="text"
android:textColor="@android:color/white"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_margin="10dp"
android:layout_above="@+id/editText"
android:layout_alignLeft="@+id/editText"
android:layout_marginBottom="15dp"/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="number"
android:ems="15"
android:padding="10dp"
android:id="@+id/editText" android:layout_gravity="center"
android:layout_centerInParent="true"
android:background="@color/white"/>
</RelativeLayout>
</RelativeLayout>
1 个解决方案
#1
9
To fix a similar problem, I just changed something in app Gradle file and synced the project again.
为了解决类似的问题,我只是在应用程序Gradle文件中更改了一些内容并再次同步项目。
#1
9
To fix a similar problem, I just changed something in app Gradle file and synced the project again.
为了解决类似的问题,我只是在应用程序Gradle文件中更改了一些内容并再次同步项目。