Upgrade to Google Play Services:9.0.0 Error Failed to resolve: com.google.android.gms:play-services-measurement:9.0.0

后端 未结 6 1340
眼角桃花
眼角桃花 2020-11-27 03:28

I upgraded my build.gradle file from

compile \'com.google.android.gms:play-services:8.4.0\'

to

compile \'com.google.android.g

6条回答
  •  盖世英雄少女心
    2020-11-27 03:45

    When changing play services to a version above 10.2.1 my dependencies started to fail resolving.

    I found out that changing the following maven URL solved the issue:

    maven { url 'https://raw.githubusercontent.com/onepf/OPF-mvn-repo/master/' }
    

    to

    maven { url 'https://github.com/onepf/OPF-mvn-repo/raw/master/' }
    

    It might that the URL change avoids a cache it in gradle or maven and that resolves it.

提交回复
热议问题