Unsupported type (com.google.gms.googleservices.GoogleServicesPlugin$Version) found for field 'rangeStart'...












2















I updated Android studio from 3.3 to 3.4 canary 3.4



I got errors like



Unsupported type (com.google.gms.googleservices.GoogleServicesPlugin$Version) found
for field 'rangeStart' while constructing immutable class com.google.gms.googleservices.GoogleServicesPlugin$VersionRange.
Immutable classes only support properties with effectively immutable types including:

- Strings, primitive types, wrapper types, Class, BigInteger and BigDecimal, enums
- classes annotated with @KnownImmutable and known immutables (java.awt.Color, java.net.URI)
- Cloneable classes, collections, maps and arrays, and other classes with special handling
(java.util.Date and various java.time.* classes and interfaces)
Other restrictions apply, please see the groovydoc for ImmutableOptions for further details


.



I'm using classpath 'com.google.gms:google-services:4.0.2' and
apply plugin: 'com.google.gms.google-services'



I got these errors as well



ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app


help me to resolve these errors I'm stuck here nothing working thanks in advance.



EDIT



here is my build.gradle for app module



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-kapt'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.xxx.xxx"
minSdkVersion 15
targetSdkVersion 28
versionCode 2
versionName "1.0"

multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


resValue "string", "some_string", '"some value"'
}

debug {
debuggable true

resValue "string", "some_string", '"some value"'

}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
final SUPPORT_LIBRARY_VERSION = '28.0.0'
final PLAY_SERVICES_VERSION = '16.0.0'
final BUTTERKNIFE_VERSION = '8.8.1'

implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
kapt "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'com.github.anshulagarwal06:Simplify-Permissions:v1'


implementation "com.google.android.gms:play-services-location:$PLAY_SERVICES_VERSION"
implementation "com.google.android.gms:play-services-places:$PLAY_SERVICES_VERSION"

implementation "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:customtabs:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:design:$SUPPORT_LIBRARY_VERSION"


implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation 'com.google.firebase:firebase-ads:17.1.1'
implementation 'com.google.firebase:firebase-core:16.0.5'


implementation 'com.squareup:otto:1.3.8'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.kobakei:MaterialFabSpeedDial:1.2.0'

implementation 'com.github.bumptech.glide:glide:3.6.0'
implementation 'com.caverock:androidsvg:1.2.1'


implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"


implementation 'com.nabinbhandari.android:permissions:3.5'
implementation 'org.greenrobot:eventbus:3.1.1'


implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'


implementation 'com.android.support:multidex:1.0.3'

implementation project(path: ':abc')
implementation project(path: ':xyz')
}


apply plugin: 'com.google.gms.google-services'









share|improve this question

























  • show some gradle code

    – Radesh
    Nov 14 '18 at 7:21











  • I updated my question please check it out

    – Hanzala
    Nov 14 '18 at 7:32











  • Please add the correspondinf code/class for rangeStart fields. Please also responde with @.

    – Alex Mamo
    Nov 14 '18 at 12:33
















2















I updated Android studio from 3.3 to 3.4 canary 3.4



I got errors like



Unsupported type (com.google.gms.googleservices.GoogleServicesPlugin$Version) found
for field 'rangeStart' while constructing immutable class com.google.gms.googleservices.GoogleServicesPlugin$VersionRange.
Immutable classes only support properties with effectively immutable types including:

- Strings, primitive types, wrapper types, Class, BigInteger and BigDecimal, enums
- classes annotated with @KnownImmutable and known immutables (java.awt.Color, java.net.URI)
- Cloneable classes, collections, maps and arrays, and other classes with special handling
(java.util.Date and various java.time.* classes and interfaces)
Other restrictions apply, please see the groovydoc for ImmutableOptions for further details


.



I'm using classpath 'com.google.gms:google-services:4.0.2' and
apply plugin: 'com.google.gms.google-services'



I got these errors as well



ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app


help me to resolve these errors I'm stuck here nothing working thanks in advance.



EDIT



here is my build.gradle for app module



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-kapt'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.xxx.xxx"
minSdkVersion 15
targetSdkVersion 28
versionCode 2
versionName "1.0"

multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


resValue "string", "some_string", '"some value"'
}

debug {
debuggable true

resValue "string", "some_string", '"some value"'

}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
final SUPPORT_LIBRARY_VERSION = '28.0.0'
final PLAY_SERVICES_VERSION = '16.0.0'
final BUTTERKNIFE_VERSION = '8.8.1'

implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
kapt "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'com.github.anshulagarwal06:Simplify-Permissions:v1'


implementation "com.google.android.gms:play-services-location:$PLAY_SERVICES_VERSION"
implementation "com.google.android.gms:play-services-places:$PLAY_SERVICES_VERSION"

implementation "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:customtabs:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:design:$SUPPORT_LIBRARY_VERSION"


implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation 'com.google.firebase:firebase-ads:17.1.1'
implementation 'com.google.firebase:firebase-core:16.0.5'


implementation 'com.squareup:otto:1.3.8'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.kobakei:MaterialFabSpeedDial:1.2.0'

implementation 'com.github.bumptech.glide:glide:3.6.0'
implementation 'com.caverock:androidsvg:1.2.1'


implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"


implementation 'com.nabinbhandari.android:permissions:3.5'
implementation 'org.greenrobot:eventbus:3.1.1'


implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'


implementation 'com.android.support:multidex:1.0.3'

implementation project(path: ':abc')
implementation project(path: ':xyz')
}


apply plugin: 'com.google.gms.google-services'









share|improve this question

























  • show some gradle code

    – Radesh
    Nov 14 '18 at 7:21











  • I updated my question please check it out

    – Hanzala
    Nov 14 '18 at 7:32











  • Please add the correspondinf code/class for rangeStart fields. Please also responde with @.

    – Alex Mamo
    Nov 14 '18 at 12:33














2












2








2








I updated Android studio from 3.3 to 3.4 canary 3.4



I got errors like



Unsupported type (com.google.gms.googleservices.GoogleServicesPlugin$Version) found
for field 'rangeStart' while constructing immutable class com.google.gms.googleservices.GoogleServicesPlugin$VersionRange.
Immutable classes only support properties with effectively immutable types including:

- Strings, primitive types, wrapper types, Class, BigInteger and BigDecimal, enums
- classes annotated with @KnownImmutable and known immutables (java.awt.Color, java.net.URI)
- Cloneable classes, collections, maps and arrays, and other classes with special handling
(java.util.Date and various java.time.* classes and interfaces)
Other restrictions apply, please see the groovydoc for ImmutableOptions for further details


.



I'm using classpath 'com.google.gms:google-services:4.0.2' and
apply plugin: 'com.google.gms.google-services'



I got these errors as well



ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app


help me to resolve these errors I'm stuck here nothing working thanks in advance.



EDIT



here is my build.gradle for app module



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-kapt'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.xxx.xxx"
minSdkVersion 15
targetSdkVersion 28
versionCode 2
versionName "1.0"

multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


resValue "string", "some_string", '"some value"'
}

debug {
debuggable true

resValue "string", "some_string", '"some value"'

}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
final SUPPORT_LIBRARY_VERSION = '28.0.0'
final PLAY_SERVICES_VERSION = '16.0.0'
final BUTTERKNIFE_VERSION = '8.8.1'

implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
kapt "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'com.github.anshulagarwal06:Simplify-Permissions:v1'


implementation "com.google.android.gms:play-services-location:$PLAY_SERVICES_VERSION"
implementation "com.google.android.gms:play-services-places:$PLAY_SERVICES_VERSION"

implementation "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:customtabs:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:design:$SUPPORT_LIBRARY_VERSION"


implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation 'com.google.firebase:firebase-ads:17.1.1'
implementation 'com.google.firebase:firebase-core:16.0.5'


implementation 'com.squareup:otto:1.3.8'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.kobakei:MaterialFabSpeedDial:1.2.0'

implementation 'com.github.bumptech.glide:glide:3.6.0'
implementation 'com.caverock:androidsvg:1.2.1'


implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"


implementation 'com.nabinbhandari.android:permissions:3.5'
implementation 'org.greenrobot:eventbus:3.1.1'


implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'


implementation 'com.android.support:multidex:1.0.3'

implementation project(path: ':abc')
implementation project(path: ':xyz')
}


apply plugin: 'com.google.gms.google-services'









share|improve this question
















I updated Android studio from 3.3 to 3.4 canary 3.4



I got errors like



Unsupported type (com.google.gms.googleservices.GoogleServicesPlugin$Version) found
for field 'rangeStart' while constructing immutable class com.google.gms.googleservices.GoogleServicesPlugin$VersionRange.
Immutable classes only support properties with effectively immutable types including:

- Strings, primitive types, wrapper types, Class, BigInteger and BigDecimal, enums
- classes annotated with @KnownImmutable and known immutables (java.awt.Color, java.net.URI)
- Cloneable classes, collections, maps and arrays, and other classes with special handling
(java.util.Date and various java.time.* classes and interfaces)
Other restrictions apply, please see the groovydoc for ImmutableOptions for further details


.



I'm using classpath 'com.google.gms:google-services:4.0.2' and
apply plugin: 'com.google.gms.google-services'



I got these errors as well



ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-base:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-ads-lite:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-gass:[17.1.1].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-api:[16.0.3].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-base:[16.0.4].
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-analytics-impl:[16.2.3].
Show Details
Affected Modules: app


help me to resolve these errors I'm stuck here nothing working thanks in advance.



EDIT



here is my build.gradle for app module



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-kapt'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.xxx.xxx"
minSdkVersion 15
targetSdkVersion 28
versionCode 2
versionName "1.0"

multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'


resValue "string", "some_string", '"some value"'
}

debug {
debuggable true

resValue "string", "some_string", '"some value"'

}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
final SUPPORT_LIBRARY_VERSION = '28.0.0'
final PLAY_SERVICES_VERSION = '16.0.0'
final BUTTERKNIFE_VERSION = '8.8.1'

implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
kapt "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'com.github.anshulagarwal06:Simplify-Permissions:v1'


implementation "com.google.android.gms:play-services-location:$PLAY_SERVICES_VERSION"
implementation "com.google.android.gms:play-services-places:$PLAY_SERVICES_VERSION"

implementation "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:customtabs:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:design:$SUPPORT_LIBRARY_VERSION"


implementation 'com.android.support.constraint:constraint-layout:1.1.3'

implementation 'com.google.firebase:firebase-ads:17.1.1'
implementation 'com.google.firebase:firebase-core:16.0.5'


implementation 'com.squareup:otto:1.3.8'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.kobakei:MaterialFabSpeedDial:1.2.0'

implementation 'com.github.bumptech.glide:glide:3.6.0'
implementation 'com.caverock:androidsvg:1.2.1'


implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"


implementation 'com.nabinbhandari.android:permissions:3.5'
implementation 'org.greenrobot:eventbus:3.1.1'


implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'


implementation 'com.android.support:multidex:1.0.3'

implementation project(path: ':abc')
implementation project(path: ':xyz')
}


apply plugin: 'com.google.gms.google-services'






android firebase google-play-services






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 12:01







Hanzala

















asked Nov 14 '18 at 7:20









HanzalaHanzala

1,07011233




1,07011233













  • show some gradle code

    – Radesh
    Nov 14 '18 at 7:21











  • I updated my question please check it out

    – Hanzala
    Nov 14 '18 at 7:32











  • Please add the correspondinf code/class for rangeStart fields. Please also responde with @.

    – Alex Mamo
    Nov 14 '18 at 12:33



















  • show some gradle code

    – Radesh
    Nov 14 '18 at 7:21











  • I updated my question please check it out

    – Hanzala
    Nov 14 '18 at 7:32











  • Please add the correspondinf code/class for rangeStart fields. Please also responde with @.

    – Alex Mamo
    Nov 14 '18 at 12:33

















show some gradle code

– Radesh
Nov 14 '18 at 7:21





show some gradle code

– Radesh
Nov 14 '18 at 7:21













I updated my question please check it out

– Hanzala
Nov 14 '18 at 7:32





I updated my question please check it out

– Hanzala
Nov 14 '18 at 7:32













Please add the correspondinf code/class for rangeStart fields. Please also responde with @.

– Alex Mamo
Nov 14 '18 at 12:33





Please add the correspondinf code/class for rangeStart fields. Please also responde with @.

– Alex Mamo
Nov 14 '18 at 12:33












2 Answers
2






active

oldest

votes


















0














At first, i assume you're using google-services plugin of version 4.1.0 (or 4.0.0), but latest available is 4.2.0, and it provides plenty of useful information about conflicting transitive dependencies.



So, start with updating that one:



classpath 'com.google.gms:google-services:4.2.0' (in root build.gradle or wherever you have plugins config).



After that, you will get much more useful output about conflicting dependencies, smth like that:



Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[15.0.1], 
but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the artifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-common@16.0.0
...

BUILD FAILED IN X secs


What helped me is excluding transitive dependencies for play-services-location, play-services-places:



implementation("com.google.android.gms:play-services-maps:16.0.0") {
exclude module: 'play-services-base'
exclude module: 'play-services-basement'
exclude module: 'play-services-tasks'
}


Or just downgrade libraries you're using for location and places to 15.0.1, that will do the trick as well.






share|improve this answer
























  • Ok I'll try later for the time I downgraded my Android studio to 3.3 beta 4

    – Hanzala
    Nov 19 '18 at 7:38



















-1














Try to disable offline work -> Settings >Gradle >Disable Offline Work






share|improve this answer
























  • not working this solution

    – Hanzala
    Nov 14 '18 at 7:34











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53294966%2funsupported-type-com-google-gms-googleservices-googleservicespluginversion-fo%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














At first, i assume you're using google-services plugin of version 4.1.0 (or 4.0.0), but latest available is 4.2.0, and it provides plenty of useful information about conflicting transitive dependencies.



So, start with updating that one:



classpath 'com.google.gms:google-services:4.2.0' (in root build.gradle or wherever you have plugins config).



After that, you will get much more useful output about conflicting dependencies, smth like that:



Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[15.0.1], 
but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the artifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-common@16.0.0
...

BUILD FAILED IN X secs


What helped me is excluding transitive dependencies for play-services-location, play-services-places:



implementation("com.google.android.gms:play-services-maps:16.0.0") {
exclude module: 'play-services-base'
exclude module: 'play-services-basement'
exclude module: 'play-services-tasks'
}


Or just downgrade libraries you're using for location and places to 15.0.1, that will do the trick as well.






share|improve this answer
























  • Ok I'll try later for the time I downgraded my Android studio to 3.3 beta 4

    – Hanzala
    Nov 19 '18 at 7:38
















0














At first, i assume you're using google-services plugin of version 4.1.0 (or 4.0.0), but latest available is 4.2.0, and it provides plenty of useful information about conflicting transitive dependencies.



So, start with updating that one:



classpath 'com.google.gms:google-services:4.2.0' (in root build.gradle or wherever you have plugins config).



After that, you will get much more useful output about conflicting dependencies, smth like that:



Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[15.0.1], 
but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the artifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-common@16.0.0
...

BUILD FAILED IN X secs


What helped me is excluding transitive dependencies for play-services-location, play-services-places:



implementation("com.google.android.gms:play-services-maps:16.0.0") {
exclude module: 'play-services-base'
exclude module: 'play-services-basement'
exclude module: 'play-services-tasks'
}


Or just downgrade libraries you're using for location and places to 15.0.1, that will do the trick as well.






share|improve this answer
























  • Ok I'll try later for the time I downgraded my Android studio to 3.3 beta 4

    – Hanzala
    Nov 19 '18 at 7:38














0












0








0







At first, i assume you're using google-services plugin of version 4.1.0 (or 4.0.0), but latest available is 4.2.0, and it provides plenty of useful information about conflicting transitive dependencies.



So, start with updating that one:



classpath 'com.google.gms:google-services:4.2.0' (in root build.gradle or wherever you have plugins config).



After that, you will get much more useful output about conflicting dependencies, smth like that:



Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[15.0.1], 
but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the artifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-common@16.0.0
...

BUILD FAILED IN X secs


What helped me is excluding transitive dependencies for play-services-location, play-services-places:



implementation("com.google.android.gms:play-services-maps:16.0.0") {
exclude module: 'play-services-base'
exclude module: 'play-services-basement'
exclude module: 'play-services-tasks'
}


Or just downgrade libraries you're using for location and places to 15.0.1, that will do the trick as well.






share|improve this answer













At first, i assume you're using google-services plugin of version 4.1.0 (or 4.0.0), but latest available is 4.2.0, and it provides plenty of useful information about conflicting transitive dependencies.



So, start with updating that one:



classpath 'com.google.gms:google-services:4.2.0' (in root build.gradle or wherever you have plugins config).



After that, you will get much more useful output about conflicting dependencies, smth like that:



Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[15.0.1], 
but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the artifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-common@16.0.0
...

BUILD FAILED IN X secs


What helped me is excluding transitive dependencies for play-services-location, play-services-places:



implementation("com.google.android.gms:play-services-maps:16.0.0") {
exclude module: 'play-services-base'
exclude module: 'play-services-basement'
exclude module: 'play-services-tasks'
}


Or just downgrade libraries you're using for location and places to 15.0.1, that will do the trick as well.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 18 '18 at 13:33









Nikita KraevNikita Kraev

5331511




5331511













  • Ok I'll try later for the time I downgraded my Android studio to 3.3 beta 4

    – Hanzala
    Nov 19 '18 at 7:38



















  • Ok I'll try later for the time I downgraded my Android studio to 3.3 beta 4

    – Hanzala
    Nov 19 '18 at 7:38

















Ok I'll try later for the time I downgraded my Android studio to 3.3 beta 4

– Hanzala
Nov 19 '18 at 7:38





Ok I'll try later for the time I downgraded my Android studio to 3.3 beta 4

– Hanzala
Nov 19 '18 at 7:38













-1














Try to disable offline work -> Settings >Gradle >Disable Offline Work






share|improve this answer
























  • not working this solution

    – Hanzala
    Nov 14 '18 at 7:34
















-1














Try to disable offline work -> Settings >Gradle >Disable Offline Work






share|improve this answer
























  • not working this solution

    – Hanzala
    Nov 14 '18 at 7:34














-1












-1








-1







Try to disable offline work -> Settings >Gradle >Disable Offline Work






share|improve this answer













Try to disable offline work -> Settings >Gradle >Disable Offline Work







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 14 '18 at 7:26









GoRoGoRo

266




266













  • not working this solution

    – Hanzala
    Nov 14 '18 at 7:34



















  • not working this solution

    – Hanzala
    Nov 14 '18 at 7:34

















not working this solution

– Hanzala
Nov 14 '18 at 7:34





not working this solution

– Hanzala
Nov 14 '18 at 7:34


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53294966%2funsupported-type-com-google-gms-googleservices-googleservicespluginversion-fo%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine