Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to resolve: android.support.design:28.0.0-rc02

I am using Android Studio 3.1.4. Since I would like to make a Tab Layout, I add the code implmentation 'com.android.support design:28.0.0-rc02', which has the same version as support.accompat in build.gradle but error appears.

May I know whats going on? How can I solve the problem?

Thanks for helping.

My code x

Error message x

like image 565
Kitty Li Avatar asked Sep 01 '18 02:09

Kitty Li


4 Answers

com.android.support:design:28.0.0-rc02 should be replaced by Failed to resolve: com.android.support:design:28.0.0-rc01

I think there's no rc02 exist in Android Studio because every time you sync the project the error still occur. After you replace the rc02 to rc01 the project will works fine.

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.android.support:recyclerview-v7:28.0.0-rc01'
    implementation 'com.android.support:design:28.0.0-rc01'
}
like image 167
Trishant Saxena Avatar answered Nov 15 '22 13:11

Trishant Saxena


I had the same problem and fixed it by just changing version of everything to 28.0.0-rc01.

like image 28
Mojzi Avatar answered Nov 15 '22 12:11

Mojzi


Edits

design:28.0.0-rc02 is published now, simply add and re-build.


Before edits

So all you can do for now is use the previous version for appcompat and wait until design library new version 28.0.0-rc02 release.

So for now use this :

implementation 'com.android.support:appcompat-v7:28.0.0-rc01'.

I don't know why... But they(sdk devs) behaving like Microsoft..

"Ohh..It compiles, lets ship it".

They just launch and don't care about bugs.. after updating to latest libs every time, first thing i get is..

"Layout editor preview errors.".

i hope it will be easy next time. :/

like image 2
SRB Bans Avatar answered Nov 15 '22 11:11

SRB Bans


Because it's simply not there. the latest version of design support is 28.0.0-rc01

see https://mvnrepository.com/artifact/com.android.support/design?repo=google

Edit: now it's available

like image 1
TootsieRockNRoll Avatar answered Nov 15 '22 12:11

TootsieRockNRoll