Я пытался импортировать ограничение 2,0, но безуспешно
Если попытаться импортировать его в Gradle, но он не может решить его. но если я импортирую limitintlayout 1.1.0, он работает как шарм
работает:
compile 'com.android.support.constraint:constraint-layout:1.1.0'
не работает:
compile 'com.android.support.constraint:constraint-layout:2.+'
для того, чтобы попробовать новое ограничение, я установил Android Studio 3.2. У меня также есть последние инструменты, которые идут с этим.
Я проверил инструменты SDK, и я не вижу ограничений 2.0 в репозиториях поддержки.
android {
compileSdkVersion 'android-P'
defaultConfig {
applicationId "com.example.pteran_pc.test28"
minSdkVersion 'P'
targetSdkVersion 'P'
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'
implementation 'androidx.constraintlayout:constraintlayout:2.+'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0-alpha1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha1'
}
основная сборка gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha14'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
...