Не могу подключить библиотеку с githubAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Не могу подключить библиотеку с github

Сообщение Anonymous »


Failed to resolve: com.jcodecraeer:xrecyclerview:1.6.0
Failed to resolve: com.github.smarteist:autoimageslider:1.1.1
Failed to resolve: com.android.volley:volley:1.1.1
Failed to resolve: com.pierfrancescosoffritti.androidyoutubeplayer:core:8.0.1
Failed to resolve: tv.danmaku.ijk.media:ijkplayer-java:0.8.8
Failed to resolve: tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8
Failed to resolve: tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8
Failed to resolve: tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8
Failed to resolve: tv.danmaku.ijk.media:ijkplayer-x86:0.8.8
Failed to resolve: tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8

Мой файл build.gradle(app)
apply plugin: 'com.android.application'

android {
compileSdkVersion 34
namespace "com.androworld.player.video_player"
defaultConfig {
applicationId "com.androworld.player.video_player"
minSdkVersion 21
targetSdkVersion 34
versionCode 40
versionName "4.2.8"
multiDexEnabled true
ndk {
// config you want to support device
abiFilters 'arm64-v8a', 'armeabi', 'armeabi-v7a', 'x86'
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debugMini {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
configurations.all {
resolutionStrategy {
force 'androidx.annotation:annotation:1.2.0'
}
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}

}

}

}

// sourceSets.main {
// jniLibs.srcDirs 'src/main/libs'
// }

}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
//implementation 'androidx.annotation:annotation:1.2.0'
//implementation 'androidx.annotation:annotation-jvm:1.7.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.multidex:multidex:2.0.1'
//support
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.jcodecraeer:xrecyclerview:1.6.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
//vector,percent,palette
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
//equlizer
implementation 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'
implementation 'com.joanzapata.iconify:android-iconify-entypo:2.2.2'
// implementation 'androidx.legacy:legacy-support-v4:1.0.0'

implementation 'com.github.smarteist:autoimageslider:1.1.1'
//data
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.volley:volley:1.1.1'
implementation 'org.apache.commons:commons-io:1.3.2'
//youtubeplayer
implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:8.0.1'
// implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5'
//Ads
//implementation 'com.google.android.gms:play-services-ads:20.4.0'
//intro_screen
implementation project(':material-intro-screen')
//player
implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'

// implementation project(':ijkplayer-java')
// implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'

// implementation project(':xvideoplayer')
// implementation 'com.henryblue.mxvideoplayer:xvideoplayer:1.2.1'
implementation 'com.firebase:firebase-client-android:2.5.0'
implementation 'com.yandex.android:mobileads:5.10.0'
implementation 'com.yandex.android:mobmetricalib:5.0.0'
//implementation 'com.google.android.gms:play-services-ads:17.2.1'

//implementation 'com.facebook.android:audience-network-sdk:5.3.0'

implementation 'androidx.work:work-runtime-ktx:2.7.1' //no started android api 32
}

settings.gradle(Проект)
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://www.jitpack.io" }
}
}

plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // Note: JCenter is deprecated and should be avoided if possible
maven { url "https://www.jitpack.io" }
maven {
url "https://artifactory-external.vkpartner. ... tory/maven"
}
maven { url 'https://dl.bintray.com/yandexmobile/maven' } // Likely deprecated, use
alternatives
maven { url "https://raw.github.com/embarkmobile/zxi ... epo/maven-
repository/" }
maven { url "https://dl.bintray.com/theartofdev/Edmodo" } // Deprecated
}
}

include ':app', ':material-intro-screen'


Подробнее здесь: https://stackoverflow.com/questions/792 ... rom-github
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

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