Import the new Android Design Support Library

Hi, I am trying to import a new Android support library similar to this com.android.support:support-design:22.0.0 , but I got this error after synchronizing gradle: failed to find

+11
source share
7 answers

You need to update your Android support repository in the SDK Manager, and then just add this dependency to your build.gradle :

 compile 'com.android.support:design:22.2.0' 

com.android.support:support-design:22.0.0 is incorrect.

+24
source

docs are wrong.

Actually it should be 'com.android.support:design:22.2.0'

as stated in their official blog .

+3
source

With gradle 3, this should be:

 dependencies { implementation 'com.android.support:design:27.0.2' } 
+3
source
 dependencies { implementation 'com.android.support:design:28.0.0' } 
+3
source

You can use:

 compile 'com.android.support:design:22.2.0' 

I built a complete example. I hope this helps! https://github.com/erikcaffrey/AndroidDesignSupportLibrary

Remember what is available now!

Android Support Library, version 22.2.1 (July 2015)

+2
source

ctrl + alt + shift + s in the androidstudio window ... The project structure will appear.
click the application in the menu bar on the left, then click the dependencies . then add `com.android.support:design:26.1.0

+2
source
 implementation 'com.android.support:design:28.0.0' 

Click “File” → “Project Structure” (or CTRL + ALT + SHIFT + S) → select “Dependencies” → click “+” in the “All Dependencies” section → select “1.Library Dependency '-> here you can find any a library to implement in your android studio project.

+1
source

Source: https://habr.com/ru/post/988212/


All Articles