Библиотека com.simplemobiletools.commons не загружается без jcenterAndroid

Форум для тех, кто программирует под Android
Anonymous
Библиотека com.simplemobiletools.commons не загружается без jcenter

Сообщение Anonymous »

Я использую библиотеку

Код: Выделить всё

implementation ('com.simplemobiletools:commons:5.32.23')
Он работал с jcenter. Но теперь он даже не работает с jcenter(). Я получаю эту ошибку:

Код: Выделить всё

Could not find commons-5.32.23.aar (com.simplemobiletools:commons:5.32.23).
Searched in the following locations:
https://jcenter.bintray.com/com/simplemobiletools/commons/5.32.23/commons-5.32.23.aar
https://jcenter.bintray.com/com/simplemobiletools/commons/5.32.23/commons-5.32.23.jar
В соответствии с рекомендациями Android и импортом альтернативной версии Maven. Я могу найти библиотеку Maven здесь:
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()
}
}
Это есть в моем проектеName/build.gradle:

Код: Выделить всё

buildscript {
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
....
И я добавил это в app/build.gradle:

Код: Выделить всё

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'
}
}
Кроме того, сначала я получал сообщение об ошибке «Не удалось разрешить: com.simplemobiletools:filepicker:1.6.1»
Затем я исключил средство выбора файлов, например :

Код: Выделить всё

implementation ('com.simplemobiletools:commons:1.0.12') {
exclude module:'filepicker'
exclude module: 'joda-time'
}
затем я начал получать сообщение «Не удалось разрешить com.simplemobiletools:commons:1.0.12

Подробнее здесь: https://stackoverflow.com/questions/790 ... ut-jcenter

Вернуться в «Android»