【发布时间】:2017-05-28 18:52:11
【问题描述】:
有人成功地将位置服务构建到 Android Things 中吗?我正在尝试使用 LocationServices,但它无法连接到 Google Play。
它抱怨“W/GooglePlayServicesUtil:缺少 Google Play 商店”。 ConnectionResult 是 {statusCode=SERVICE_INVALID, resolution=null, message=null}
我在 Android Things (Intel Edison) 上设置了 wifi,它可以成功获取网页。
以下是我的 gradle 文件。
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "com.example.androidthings.myproject"
minSdkVersion 24
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.google.android.gms:play-services:10.2.6'
provided 'com.google.android.things:androidthings:0.4-devpreview'
}
我的第一个关于 stackoverflow 的问题。许多人认为您的帮助!
【问题讨论】:
标签: android google-play-services android-things intel-edison