Код: Выделить всё
implementation ('com.simplemobiletools:commons:5.32.23')
https://mvnrepository.com/artifact/com. ... ls/commons
Но когда Импортирую в Android, он не загружается и пишет "
Код: Выделить всё
Failed to resolve com.simplemobiletools:commons:1.0.12Почему? Мне нужно удалить jcenter и использовать альтернативную версию Maven.
Я добавил это в свои настройки .gradle
Код: Выделить всё
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter()
}
}
Код: Выделить всё
buildscript {
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
....
Код: Выделить всё
buildscript {
repositories {
google()
mavenCentral()
// maven { url 'https://maven.fabric.io/public' }
// maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.0'
}
}
Затем я исключил средство выбора файлов, например :
Код: Выделить всё
implementation ('com.simplemobiletools:commons:1.0.12') {
exclude module:'filepicker'
exclude module: 'joda-time'
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... ut-jcenter
Мобильная версия