Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

appcompat-v7:28.0.0-rc02 doesn't work with design:28.0.0-rc01(should be rc02, but we can't)

com.android.support:appcompat-v7:28.0.0-rc02

com.android.support:design:28.0.0-rc01 -> should be rc02, but there's no rc02 actually.

error:

app/build.gradle:74: Error: All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes).
Found versions 28.0.0-rc02, 28.0.0-rc01. Examples include com.android.support:animated-vector-drawable:28.0.0-rc02 and com.android.support:cardview-v7:28.0.0-rc01 [GradleCompatible]

I know it's a warning, we have turned to warn as the errors in CI in order to avoid the potential dead crashes, well, any solution except turn off option for CI?

issue

like image 262
TeeTracker Avatar asked Aug 29 '18 13:08

TeeTracker


3 Answers

UPDATE

Design library version 28.0.0-cr02 published.

OLD ANSWER

According to this link

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

design:28.0.0-rc02 not yet published.

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

So for now use this :

implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
like image 67
Radesh Avatar answered Nov 11 '22 18:11

Radesh


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 38
SRB Bans Avatar answered Nov 11 '22 18:11

SRB Bans


Keep track of the library here, until its published, use rc01 for other ones.

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

like image 40
MoGa Avatar answered Nov 11 '22 19:11

MoGa