androidstudio2-4 Exercise 3: Add and Remove a Dependency the Catalog Way ======================================================================== Library: Compose extended icons. Its version comes from the Compose BOM, so the catalog line needs no version. (The coordinates below are from general knowledge and were not checked; if Gradle cannot find the library, check them at developer.android.com and use the Build tool window's message.) 1. gradle/libs.versions.toml, under [libraries], add: androidx-compose-material-icons-extended = { group = "androidx.compose.material", name = "material-icons-extended" } 2. app/build.gradle.kts, inside dependencies { }, add: implementation(libs.androidx.compose.material.icons.extended) (Dashes in the catalog name become dots: androidx-compose-material-icons-extended -> libs.androidx.compose.material.icons.extended. Android Studio will complete it after "libs.".) 3. File > Sync Project with Gradle Files (Ctrl+Shift+O). Watch the Build tool window, Sync tab. 4. File > Project Structure... > Dependencies > app: the new library appears with configuration "implementation" and requested version "/*not specified*/" (the BOM supplies it). 5. Remove both lines and sync again. The library disappears from the Dependencies page. If sync fails: read the first error in the Build tool window. Common causes are a typo in the catalog name (dash against dot) or a library that is not in the BOM. This library is large; do not leave it in a real project unless you need it.