当我将play-services-location更新为11.0.2时,我收到以下错误。
package com.google.android.gms.maps does not exist
package com.google.android.gms.maps.model does not exist
当play-services-location为9.0.1时,它运行正常。我需要将此应用程序集成到依赖项为的另一个应用程序中:
compile 'com.google.firebase:firebase-appindexing:11.0.2'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.google.android.gms:play-services-auth:11.0.2'
compile 'com.google.firebase:firebase-database:11.0.2'
compile 'com.google.firebase:firebase-storage:11.0.2'
compile 'com.firebaseui:firebase-ui:2.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.firebase:firebase-auth:11.0.2'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.+'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.android.support:design:24.1.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
testCompile 'junit:junit:4.12'
当我尝试将all设置为9.0.1时,出现以下错误:
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.google.firebase:firebase-database:9.0.1'
compile 'com.google.firebase:firebase-storage:9.0.1'
compile 'com.firebaseui:firebase-ui:2.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.firebase:firebase-auth:9.0.1'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.+'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.android.support:design:24.1.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.google.android.gms:play-services-location:9.0.1'
compile 'com.google.android.gms:play-services-auth:9.0.1'
compile 'com.google.firebase:firebase-appindexing:9.0.1'
错误:无法解析com.google.firebase:firebase-appindexing:9.0.1
我是否需要更新Google Play服务。请帮忙。
答案 0 :(得分:1)