添加'时出错;com.google.android.gms:play服务位置:17.0.0';图书馆

添加'时出错;com.google.android.gms:play服务位置:17.0.0';图书馆,android,build.gradle,android-library,Android,Build.gradle,Android Library,添加'com.google.android.gms:play services location:17.0.0'时出错 想方设法,但问题没有解决 implementation 'com.google.android.gms:play-services-location:17.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.1

添加'com.google.android.gms:play services location:17.0.0'时出错 想方设法,但问题没有解决

implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

我想我明白你的问题了,我可以看出你用了反引号(`)而不是撇号(`)

解决方案:编辑此行:

实现'com.google.android.gms:play services位置:17.0.0`

像这样:

implementation 'com.google.android.gms:play-services-location:17.0.0'
建议:
人们在评论你的问题。试着跟随他们,编辑标题使其恰当,并学习如何恰当地提问。欢迎来到stackoverflow

确保您已将
apply插件:“com.android.application”
添加到您的
build.gradle
文件中,并参考本文:

欢迎使用StackOverflow。请在标题和问题中注明您遇到的实际错误,因为没有人知道您的问题。了解您试图解决问题的方法也很有用。
如何解决问题
哪个问题<代码>但问题未解决哪个问题?您的问题不清楚。请提供更多详细信息如果您有合并清单失败错误,请发布错误我想我也有相同的错误,但请告诉我们错误是什么,以便有人能正确回答您的问题