Hello dear devs.
I have returned to Android Studio after 7 years of breaking, and I am pretty much feel dizzy now with all the new things.
I am trying to understand why gradle does not download the required package.
Here how my bundle.gradle looks like :
plugins {
alias(libs.plugins.androidApplication)
}
android {
namespace 'com.example.sygictesta'
compileSdk 34
defaultConfig {
applicationId "com.example.sygictesta"
minSdk 24
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation libs.appcompat
implementation libs.material
implementation libs.activity
implementation libs.constraintlayout
implementation 'com.sygic.fleet:remote-api:6.0.2'
testImplementation libs.junit
androidTestImplementation libs.ext.junit
androidTestImplementation libs.espresso.core
}
and here is how my “settings.gradle” looks like:
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
{
name = "Download only jar repo"
content {
includeVersion( "com.sygic.fleet","remote-api", "6.0.2" )
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://public.repo.sygic.com/repository/maven-sygic-releases/" }
}
}
rootProject.name = "SygicTestA"
include ':app'
yet - “com.sygic.fleet” never got downloaded.
What I am doing wrong, and how to fix it ?
Please help