【发布时间】:2016-03-23 14:42:39
【问题描述】:
我正在尝试在 android 中制作谷歌地图应用程序。我已经在 SDK 管理器中安装了 Google Play 服务。当我运行该应用程序时,模拟器中有错误文本:
除非您更新 Google Play 服务,否则应用将无法运行
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "ge.currencyexchange"
minSdkVersion 9
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:8.3.0'
}
我尝试将 compile 'com.google.android.gms:play-services:8.3.0' 更改为 compile 'com.google.android.gms:play-services:5.0.+',但调试后它会引发有关主题的错误,并且在 AVD 中一切都相同
我能做什么?
【问题讨论】:
-
好的。设置
minSdkVersion 15 -
@IntelliJAmiya 结果是一样的..
-
你的
classpath是什么 -
该消息的意思是,模拟器中安装的Google play服务太旧了。尝试为模拟器使用更新的图像。
-
@IntelliJAmiya 在 7.8.0 上工作,非常感谢
标签: java android google-maps android-studio