Android缺少布局\u升级后启动

Android缺少布局\u升级后启动,android,layout,android-studio,upgrade,Android,Layout,Android Studio,Upgrade,我从Android Studio 0.5升级到了0.8 现在我有很多问题,我解决了大部分问题,但现在我遇到了这个错误 错误:12在包“android”中未找到属性“layout\u alignParentStart”的资源标识符 我不知道为什么它没有布局开始了 我是不是遗漏了什么 我也有同样的问题,我的问题是compileSdkVersion,我从16改为20,可以正常工作 我给你我的build.gradle文件: apply plugin: 'com.android.application'

我从Android Studio 0.5升级到了0.8 现在我有很多问题,我解决了大部分问题,但现在我遇到了这个错误

错误:12在包“android”中未找到属性“layout\u alignParentStart”的资源标识符

我不知道为什么它没有布局开始了

我是不是遗漏了什么


我也有同样的问题,我的问题是compileSdkVersion,我从16改为20,可以正常工作

我给你我的build.gradle文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 20
    buildToolsVersion "19.1.0"

    defaultConfig {
        applicationId "mypackage"
        minSdkVersion 15
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:20.+'
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    compile 'com.android.support:support-v4:20.+'
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    compile 'com.android.support:support-v13:20.+'

}

我也有同样的问题,我的问题是compileSdkVersion,我从16改为20,可以正常工作

我给你我的build.gradle文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 20
    buildToolsVersion "19.1.0"

    defaultConfig {
        applicationId "mypackage"
        minSdkVersion 15
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:20.+'
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    compile 'com.android.support:support-v4:20.+'
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    compile 'com.android.support:support-v13:20.+'

}

自API级别17以来,android为RTL布局提供了一些新属性,例如:

布局\u开始对齐 布局\u对齐父端 布局与开始对齐 布局图\u对齐结束 玛格丽塔特酒店布局图 边缘布局 然而,有些设备有特殊的ROM,可能不支持这些属性,导致异常


删除所有这些*Start/*End属性可以解决问题

由于API级别17,android为RTL布局提供了一些新属性,例如:

布局\u开始对齐 布局\u对齐父端 布局与开始对齐 布局图\u对齐结束 玛格丽塔特酒店布局图 边缘布局 然而,有些设备有特殊的ROM,可能不支持这些属性,导致异常


删除所有这些*Start/*End属性可以解决此问题

谢谢,我将对此进行检查。我不得不回到旧版本以避免这些问题。谢谢,我会检查这个。为了避免这些问题,我不得不回到旧版本。