Ash*_*elu 11 xml android android-layout android-studio
我最近得到了这个警告Layout和清单文件.我已将这些图片附在下面,只是检查一下,以便进一步说明.
问题是我得到Namespace"没有绑定警告,我不能使用自动完成代码的xml文件,这通常可以在android studio中使用.请帮助解决这个问题.显示每个android的每个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>
Run Code Online (Sandbox Code Playgroud)
use*_*129 28
这很简单.删除.caches文件:
C:\Users\user\.AndroidStudio3.2\system)4gu*_*71n 19
陷入同样的问题.我认为Android Studio 3.2存在一些与此相关的特定错误.我在Windows上的解决方案是使用.AndroidStudio3.2 /文件夹中的缓存/文件夹删除所有内容.
我尝试了其他提到的所有内容,同步gradle文件,使缓存无效,删除整个项目并再次添加.唯一对我有用的是重新安装Android Studio.第二次发生在我身上,我决定寻找比重新安装整个Android Studio更好的解决方案.开始玩缓存文件,并发现删除Android Studio配置文件夹中缓存/文件夹下的所有内容解决了这个问题.
sne*_*yan 15
这是Android studio缓存的问题.
最有可能将项目与gradle文件同步将有所帮助
如果不是,您可以手动删除位于$ HOME/.AndroidStudioX.X/system/caches上的缓存文件并重建项目.
| 归档时间: |
|
| 查看次数: |
10808 次 |
| 最近记录: |