繁体   English   中英

错误:包 com.google.android.gms.drive 不存在

[英]error: package com.google.android.gms.drive does not exist

大家好,我有这个问题,即使我检查了 StackOverflow 也无法解决,我尝试了所有解决方案,但没有任何效果。

因此,下面我将放置依赖项并同步它们,一切似乎都没问题,但是当我按下编译时,我收到此错误:包 com.google.android.gms.drive 不存在

但我包含了依赖项,我不明白为什么会出现此错误。

任何人都可以帮助我吗? 谢谢你。

dependencies {


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

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

implementation 'androidx.appcompat:appcompat:1.1.0'

implementation 'com.android.support:appcompat-v7:29.1.0'
implementation 'com.android.support:recyclerview-v7:29.1.0'
implementation 'com.android.support:design:29.1.0'

implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'


implementation "com.google.android.gms:play-services-base:17.1.0"
implementation 'com.google.android.gms:play-services-ads:18.3.0'
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'

implementation 'com.google.android.gms:play-services-location:17.0.0'



// Add the Firebase SDK for Google Analytics
// Add the SDKs for any other Firebase products you want to use in your app
// For example, to use Firebase Authentication and Cloud Firestore
implementation 'com.google.firebase:firebase-auth:19.2.0'
implementation 'com.google.firebase:firebase-firestore:21.4.0'
implementation 'com.google.firebase:firebase-analytics:17.2.2'
implementation 'com.google.firebase:firebase-database:19.2.1'
testImplementation 'junit:junit:4.12'

androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'



implementation 'com.github.bumptech.glide:glide:4.11.0'
// FirebaseUI for Firebase Realtime Database
implementation 'com.firebaseui:firebase-ui-database:6.2.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

}在此处输入代码

我建议您的第一件事是检查您是否在build.gradle添加了插件

应用插件:'com.android.application'

然后从 Build -> Clean build 做一个干净的构建

如果不应该降级依赖项只是为了确保当前版本的播放服务没有任何特定错误。 让我们知道!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM