首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法解析: com.android.support.constraint:constraint- layout:1.1.0-beta1

无法解析: com.android.support.constraint:constraint- layout:1.1.0-beta1
EN

Stack Overflow用户
提问于 2017-08-30 20:36:52
回答 1查看 8.6K关注 0票数 4

这是错误:

代码语言:javascript
复制
Error:(23, 13) Failed to resolve: com.android.support.constraint:constraint-
layout:1.1.0-beta1
Upgrade plugin to version 2.3.3 and sync project
Show in File
Show in Project Structure dialog

当我点击升级插件时,什么也没有发生。我不知道怎么解决这个问题。我尝试添加存储库maven google,但它不起作用。

下面是应用程序代码:

代码语言:javascript
复制
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
    applicationId "com.google.googleio"
    minSdkVersion 22
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.1.0-beta1'
}
EN

回答 1

Stack Overflow用户

发布于 2017-08-30 20:40:23

要使用ConstraintLayout 1.1.0 beta1,您必须添加google maven存储库:

代码语言:javascript
复制
repositories {
    maven {
        url 'https://maven.google.com'
    }
}

更多info here

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45960633

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档