在Android Studio 3.1.2中,我突然在编辑器顶部的黄色磁带框中收到以下消息:
没有IDEA注释附加到JDK 1.8(C:\ Program Files\Android\Android Studio\jre),将找不到一些问题
我在编辑配置中也有一个警告:
找不到默认活动
我该如何解决这些问题?
在所有Android标记上获取未知属性错误.
在布局XML中,自动建议不显示所有属性(如layout_width,layout_height,orientation,orientation和所有其他android属性.)
我为解决这个问题所做的一切.
Clean Build&Rebuild Deleted .idea file Invalidated Caches/Restart .. option打开省电模式.SDk是最新的.
未知属性android:orientation less.(Ctrl + F1)此检查突出显示Android资源文件中的未知XML属性AndroidManifest.xml
目前使用:
Android studio 3.2.1
targetSdkVersion 27
ext.kotlin_version = '1.2.61'
build:gradle:3.2.1
Run Code Online (Sandbox Code Playgroud)
我尝试在路径中删除.idea并使缓存无效并重新启动,同步gradle
提前致谢 :)
我最近得到了这个警告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) 我为解决这个问题所做的一切:
清洁构建和重建
删除.idea文件
无效的缓存/重新启动..选项
打开省电模式.
SDk是最新的.
使用Gradle文件同步项目.
完成Android Studio重新安装
重新完成新项目
在应用程序Gradle文件中更改了某些内容并再次同步项目
android studio旧版本的改变也没有帮助
Intellij显示重置为默认命名空间,它将删除android命名空间..(在Project中,布局文件更正未反映到app中)
Android Studio版本
错误图片
gradle图像
Intelij解决方案