Ways to include Android Jetpack libraries in the application

Add google repository in the build.gradle file of the application project.

allprojects {

  repositories {

      google()

      mavenCentral()

      }

}

All Jetpack components are available in the Google Maven repository, include them in the build.gradle file

allprojects {

   repositories {

       google()

       mavenCentral()

   }

}

Foundation Components of Android Jetpack

Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications. Launched by Google in 2018, Jetpack comprises existing android support libraries, android architecture components with an addition of the Android KTX library as a single modular entity. Nowadays, nearly 99% of the apps present on the Google Play Store uses Android Jetpack libraries. The core system components of android apps reside in the Foundation area of Jetpack. Kotlin extension for the language support and Testing libraries are also present in it. Moreover, backward compatibility is provided from the libraries present in this component. This article explains each and every library of the Foundation component in detail. Jetpack consist of a wide collection of libraries that are built in a way to work together and make robust mobile applications. Its software components have been divided into 4 categories:

Further, the following are the list of all Foundation components:

  1. AppCompat
  2. Android KTX
  3. Test
  4. Multidex

Similar Reads

Ways to include Android Jetpack libraries in the application

Add google repository in the build.gradle file of the application project....

Foundation Components

1. AppCompat...

Contact Us