Я получил эту ошибку после изменения объявлений Google Play на последнюю версию.
ОШИБКА: не удалось разрешить: com.google.android.gms: play-services-analytics: 17.2.0
app.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.example.app"
minSdkVersion 15
targetSdkVersion 26
versionCode 5
versionName '1.3.0'
manifestPlaceholders = [onesignal_app_id: "xyz",
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: "xyz"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
aaptOptions {
cruncherEnabled = false
}
}
repositories {
maven { url 'https://maven.google.com' }
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.mcxiaoke.volley:library:1.0.18'
implementation 'com.github.chrisbanes.photoview:library:1.2.3'
implementation 'com.google.android.gms:play-services-ads:18.2.0'//11.8.0
implementation 'com.pkmmte.view:circularimageview:1.1'
implementation 'com.melnykov:floatingactionbutton:1.3.0'
implementation 'com.squareup.okhttp:okhttp:2.5.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:cardview-v7:27.1.0'
implementation 'com.android.support:recyclerview-v7:27.1.0'
implementation 'com.android.support:design:27.1.0'
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'com.google.firebase:firebase-messaging:20.0.0'
implementation 'com.github.hotchemi:android-rate:1.0.1'
implementation 'com.onesignal:OneSignal:[3.9.1, 3.99.99]'//3.6.2 // 3.8.3
implementation 'com.google.android.gms:play-services-analytics:17.2.0'
}
apply plugin: 'com.google.gms.google-services'
project.gradle:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'//2.2.3
classpath 'com.google.gms:google-services:4.0.1'//3.1.1
}
}
allprojects {
repositories {
google()
jcenter()
}
}
В результате какя могу решить мою проблему?Я не могу решить свою проблему, как я могу решить ее?Спасибо за любой ответ.
Я разработчик игры:)