Last time I deployed the artifact (AAR file) to my local Maven repository at JFrog Artifactory. Now I’m trying to download its to my Android project but Gradle still says “ERROR: Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not resolve ARTIFACT.”
build.gradle (for Project)
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.9.6"
}
}
allprojects {
version = '1.0'
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven {
url "https://ADDRESS:8081/ADDRESS/REPOSITORY_NAME"
credentials {
username "user"
password "password"
}
}
jcenter()
google()
}
}
build.gradle (for module)
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'
}
}
apply plugin: 'com.android.application'
apply plugin: 'jacoco-android'
android {
compileSdkVersion 28
defaultConfig {
buildToolsVersion "28.0.3"
applicationId "app.id"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
compile(group: 'artifact_path', name: 'lib', version: '1.0', ext: 'aar')
testImplementation 'junit:junit:4.12'
}
Could you help me? I even don’t know if I use proper JFrog Repository, may be problem is in not proper URL or something else what I haven’t already thought