can't import gradle constraintlayout 2.0

Multi tool use
Multi tool use


can't import gradle constraintlayout 2.0



I've tried to import constraintlayout 2.0 but didn't succeed
If tried importing it into gradle but it can't resolve it. but if I import constraintlayout 1.1.0 it works like a charm



works:


compile 'com.android.support.constraint:constraint-layout:1.1.0'



not works:


compile 'com.android.support.constraint:constraint-layout:2.+'



in order to try the new constraintlayout, I've installed android studio 3.2. I also have the latest tools that come with it.
I've checked the sdk tools and I can't see constraintlayout 2.0 under support repositories.


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'
}



the main build 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()
}
}
...





I do not see anything for that listed at maven.google.com. Are you sure that they have released an alpha of ConstraintLayout 2.0?
– CommonsWare
May 17 at 15:00


ConstraintLayout





I'm not 100% sure but taking in to account that they have already promoted it on the google IO i suppossed that there should be an alpha available for early adopters at least
– Pedro Teran
May 17 at 20:08






My interpretation of this tweet from the ConstraintLayout lead would suggest that they have not published an alpha yet.
– CommonsWare
May 17 at 20:11


ConstraintLayout





you seems to be right!! how sad :( :(
– Pedro Teran
May 17 at 20:16





It may be that they hoped to have an alpha ready by the time of I|O, but the schedule slipped.
– CommonsWare
May 17 at 20:19




2 Answers
2



The alpha version is available now :)


implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha1'



https://androidstudio.googleblog.com/2018/06/constraintlayout-200-alpha-1.html



According to Android Studio Release Updates' webpage the most recent version available for ConstraintLayout is 1.1.0


ConstraintLayout


1.1.0



So I think it's safe to think that ConstraintLayout 2.0 is not available yet.


ConstraintLayout 2.0





Yes, it seems so, but taking in consideration that they published it on the google IO I supposed that constraintlayout 2.0 should be at least in alpha for early adopters
– Pedro Teran
May 17 at 20:09





I think @CommonsWare is right. Maybe they were planning to have it ready for the I/O but couldn't make it on time
– Mike Grimm
May 18 at 7:39






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

n,qiF w q1dLe7i1XZQsPoEUUOX
gJ9OoCRfVgozR234zdPn0JZoLGhqSrWY

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications