[英]Android Studio gradle update error
I am working on geofencing app in Android. 我正在使用Android中的地理围栏应用程序。 If I set the
如果我设置
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'
}
it works fine.If I changed it to 它工作正常。如果我将其更改为
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'
}
I get following error. 我收到以下错误。
package com.google.android.gms.maps does not exist 包com.google.android.gms.maps不存在
package com.google.android.gms.maps.model does not exist 包com.google.android.gms.maps.model不存在
Why? 为什么? I need to set it to 11.0.2 for integrating it with other app.
我需要将其设置为11.0.2才能与其他应用集成。
Sync Project With Gradle File may help. 将项目与Gradle文件同步可能会有所帮助。 Just click the button next to AVD Manager or navigate through Tools->Android->Sync Project With Gradle File .
只需单击“ AVD管理器”旁边的按钮,或在“ 工具”->“ Android”->“使用Gradle File同步项目”中导航。
尝试将您的项目与gradle文件同步,但是如果gradle同步失败,则下载gradle的最新版本,并在build.gradle下指定其路径,然后尝试再次同步。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.