Android GoogleMap已在此编译单元中定义
如何解决这个问题 这是我使用的依赖项Android GoogleMap已在此编译单元中定义,android,Android,如何解决这个问题 这是我使用的依赖项 Error:(6, 1) error: GoogleMap is already defined in this compilation unit while building project from android studio. 您应该删除依赖项中的此行: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.supp
Error:(6, 1) error: GoogleMap is already defined in this compilation unit while building project from android studio.
您应该删除依赖项中的此行:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.google.android.gms:play-services-maps:7.8.0'
}
谷歌Play服务的最新版本现在使用appcompat-v7,所以你不能在谷歌地图上使用它。您只能使用appcompat-v7或以前版本的Google服务 也请阅读
compile 'com.android.support:appcompat-v7:23.0.1'