mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-09 07:11:07 +08:00
Update "Getting Started"
- "compile" has been deprecated. Changed it to "implementation" - No longer need to use maven in repositories. Updated to google() GIT_ORIGIN_REV_ID=322cfc89767649d726eb865d5416cdbdec3772aa PiperOrigin-RevId: 204989838
This commit is contained in:
parent
2cf1040ca8
commit
5bdaa0de05
@ -12,26 +12,25 @@ path: /docs/getting-started/
|
||||
Material Components for Android is available through Google's Maven repository.
|
||||
To use it:
|
||||
|
||||
1. Open the `build.gradle` file for your application.
|
||||
2. Make sure that the `repositories` section includes a maven section with the
|
||||
`"https://maven.google.com"` endpoint. For example:
|
||||
1. Open the `build.gradle` file for your application.
|
||||
2. Make sure that the `repositories` section includes a maven section with the
|
||||
`"https://maven.google.com"` endpoint. For example:
|
||||
|
||||
```groovy
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
maven {
|
||||
url "https://maven.google.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
3. Add the library to the `dependencies` section:
|
||||
|
||||
3. Add the library to the `dependencies` section:
|
||||
|
||||
```groovy
|
||||
dependencies {
|
||||
// ...
|
||||
compile 'com.google.android.material:material:1.0.0-alpha3'
|
||||
implementation 'com.google.android.material:material:1.0.0-beta01'
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user