Когда я пытаюсь перейти на SDK New Places и добавить новую зависимость от места, как показано ниже:
implementation 'com.google.android.libraries.places:places:1.0.0'
, это дает много ошибок для другой зависимости, как показано ниже.
Невозможно разрешить зависимость для ': app @ debug / compileClasspath': Не удалось разрешить com.github.bumptech.glide: glide: 4.3.1.
Невозможно разрешить зависимость для ': app @ debug / compileClasspath': Не удалось разрешить com.google.code.gson: gson: 2.8.5.
Невозможно разрешить зависимость для': app @ debug / compileClasspath ': Не удалось разрешить com.mcxiaoke.volley: library:1.0.19.
Невозможно разрешить зависимость для ': app @ debug / compileClasspath': не удалось разрешить com.github.bumptech.glide: glide: 4.3.1.
Я получаю ошибку 40, как указано выше.
когда я удаляю места, проект libs работает нормально.
Зависимость файла gral моего уровня приложения, как показано ниже:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
compile 'com.android.support:multidex:1.0.1'
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile('com.crashlytics.sdk.android:crashlytics:2.6.1@aar') {
transitive = true;
}
implementation 'com.facebook.android:facebook-android-sdk:4.1.0'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-annotations:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.jakewharton:butterknife:7.0.1'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.libraries.places:places:1.0.0'
implementation 'com.google.guava:guava-collections:r03'
implementation 'com.etsy.android.grid:library:1.0.5'
implementation 'com.wdullaer:materialdatetimepicker:2.5.0'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.daimajia.numberprogressbar:library:1.2@aar'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
implementation 'org.apache.httpcomponents:httpcore:4.4.5'
implementation 'org.apache.httpcomponents:httpclient:4.5'
compile project(':mediapicker')
//compile project(':linkedin-sdk')
compile project(':sinch-android-rtc-3.11.1')
}
Мой уровень проектаФайл Greadle, как показано ниже:
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
maven {
url 'https://maven.google.com/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Я столкнулся с этой ошибкой, так как 2 дня, пожалуйстадать какое-то решение.