【发布时间】:2016-05-20 10:09:16
【问题描述】:
在所有 android 标签上出现未知属性错误。
在布局 XML 中,自动建议未显示所有属性(如 layout_width、layout_height、orientation、orientation 和所有其他 android 属性。)
这是一个快照
- 干净的构建和重建
- 已删除 .idea 文件
- 无效的缓存/重新启动.. 选项
- 打开省电模式。
SDk 是最新的。
在应用级网格中
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.abhishek.ondemandservice"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
应用程序级网格。
buildscript {
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
jcenter()
mavenCentral()
}
}
【问题讨论】:
-
classpath 'com.android.tools.build:gradle:2.0.0-beta2' -
为什么我要使用旧版本,如果它在其他系统中完美运行,但它不能那样工作。
-
如果他们解决了您的问题,您可能希望接受其中一个答案
-
这对我有用检查这个链接stackoverflow.com/a/52965770/8648075
标签: android android-layout android-studio android-xml android-layoutparams