我的应用程序包括QR扫描仪和生成器,但当我添加'com.google.android.gms:play-services-vision:9.4.0'库时,它会与'com.google.firebase:firebase-database:11.0.4'库进行匹配
加上它显示我的错误..错误:任务':app:processDebugGoogleServices'的执行失败 .
请通过更新google-services插件的版本来修复版本冲突(有关最新版本的信息,请访问https://bintray.com/android/android-tools/com.google.gms.google-services/ )或将com.google.android.gms的版本更新为9.8.0 .
3 回答
在处理Google API时,请务必尝试使用相同版本的API:
If you are using Android Studio 3.0 you can use both compile and implementation
If you are using Android Studio version below 3.0 use compile
试试这个
添加这个: