OiO.lk Blog Android How are the default version of dependencies for an Android project determined?
Android

How are the default version of dependencies for an Android project determined?


What criteria are used to set the versions of the libraries that are automatically added to the dependencies when creating an Android project?

like that

dependencies {

    implementation("androidx.core:core-ktx:1.13.1")
    implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.6")
    implementation("androidx.activity:activity-compose:1.9.2")
    implementation(platform("androidx.compose:compose-bom:2023.08.00"))
    implementation("androidx.compose.ui:ui")
    implementation("androidx.compose.ui:ui-graphics")
    implementation("androidx.compose.ui:ui-tooling-preview")
    implementation("androidx.compose.material3:material3")
    testImplementation("junit:junit:4.13.2")
    androidTestImplementation("androidx.test.ext:junit:1.2.1")
    androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
    androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
    androidTestImplementation("androidx.compose.ui:ui-test-junit4")
    debugImplementation("androidx.compose.ui:ui-tooling")
    debugImplementation("androidx.compose.ui:ui-test-manifest")
}

I tried the following, but the version of the newly created project did not change:

1.  Changed the minimum library version of the project.
2.  Changed the AGP (Android Gradle Plugin Version).

Why I was curious about this, I was taking an Android development class, and despite matching the environment with the instructor, but the library versions were different when creating new Project, so causing errors. I plan to find out the reason for this and inform my classmates.
I searched through the documents, but I couldn’t find any information about this.

Thank you in advance for your help.



You need to sign in to view this answers

Exit mobile version