Вызвано: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: не удалось разрешить все файлы для конфигурации ':app:debugRuntimeClasspath' .
Вызвано:
Вызвано: org.gradle.internal.resolve.ModuleVersionNotFoundException: не удалось найти com.nbsp:materialfilepicker:1.9.1.
Ниже приведен мой файл build.gradle
Код: Выделить всё
plugins {
id 'com.android.application'
}
android {
compileSdk 33
defaultConfig {
applicationId "com.teste.filepicker"
minSdk 19
targetSdk 33
versionCode 4
versionName "4.9b"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
namespace 'com.teste.filepicker'
applicationVariants.all { variant ->
variant.outputs.all { output ->
def project = "Filepiker"
def newApkName = project + ".apk"
outputFileName = new File(newApkName)
}
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'com.nbsp:materialfilepicker:1.9.1'
}
Код: Выделить всё
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter()
maven {url 'https://jitpack.io'}
}
}
rootProject.name = "Filepiker "
include ':app'
Код: Выделить всё
plugins {
id 'com.android.application' version '8.5.1' apply false
id 'com.android.library' version '8.5.1' apply false
}
Как это исправить?
Подробнее здесь: https://stackoverflow.com/questions/792 ... e-internal
Мобильная версия