[英]Android Studio gradle update error
我正在使用Android中的地理围栏应用程序。 如果我设置
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services-location:9.0.1'
}
它工作正常。如果我将其更改为
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services-location:11.0.2'
}
我收到以下错误。
包com.google.android.gms.maps不存在
包com.google.android.gms.maps.model不存在
为什么? 我需要将其设置为11.0.2才能与其他应用集成。
将项目与Gradle文件同步可能会有所帮助。 只需单击“ AVD管理器”旁边的按钮,或在“ 工具”->“ Android”->“使用Gradle File同步项目”中导航。
尝试将您的项目与gradle文件同步,但是如果gradle同步失败,则下载gradle的最新版本,并在build.gradle下指定其路径,然后尝试再次同步。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.