Android 我的应用程序在添加play services库后停止安装

Android 我的应用程序在添加play services库后停止安装,android,google-play-services,Android,Google Play Services,我的应用程序运行得很好。我决定添加播放服务(只是为了定位,因为这可以为用户提供更好的体验)。所以我增加了游戏服务。(这花了太多的时间来构建:D)。之后,当我尝试安装我的应用程序时,它说它无法安装(没有其他内容,只是写着“应用程序无法安装”)。我是否必须将播放服务升级到最新版本?或者我做错了什么?(我一定会在明天回答,而不是在之前。对于给您带来的不便,我深表歉意) 编辑: 这是我的build.gradle:应用程序模块文件: apply plugin: 'com.android.applicati

我的应用程序运行得很好。我决定添加播放服务(只是为了定位,因为这可以为用户提供更好的体验)。所以我增加了游戏服务。(这花了太多的时间来构建:D)。之后,当我尝试安装我的应用程序时,它说它无法安装(没有其他内容,只是写着“应用程序无法安装”)。我是否必须将播放服务升级到最新版本?或者我做错了什么?(我一定会在明天回答,而不是在之前。对于给您带来的不便,我深表歉意)

编辑: 这是我的
build.gradle
:应用程序模块文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "21.1.0"

    defaultConfig {
        applicationId "fr.zwedge.becomerich"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:preference-v7:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'com.google.android.gms:play-services-gcm:10.2.1'
    compile 'com.google.android.gms:play-services-location:10.2.1'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.orhanobut:dialogplus:1.11@aar'
    compile 'com.rarepebble:colorpicker:1.7.0'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.pavelsikun:material-seekbar-preference:2.2.0'
    compile 'me.angrybyte.picker:picker:1.2.0'
    compile 'com.mikepenz:materialdrawer:5.3.0'
//  compile 'com.github.jrvansuita:PickImage:2.1.2'
    compile 'com.github.nisrulz:screenshott:1.1.3'
    compile 'com.jraska:falcon:1.0.4'
    compile 'jp.wasabeef:takt:1.0.4'
}
编辑2: 这是每次我尝试安装应用程序时出现的内容(翻译为:“未安装应用程序”

不要使用compile
'com.google.android.gms:play services:9.6.1'

使用
编译'com.google.android.gms:play services位置:9.6.1'


对于位置/替换你的版本,比如10:0:1。好的。所以我刚开始了一个新项目,复制了我的
src
dir和我的
build.gradle
…并且工作正常。我不知道为什么。如果有人能解释这个问题,这可能会很好。但是谢谢大家^^



编辑:找到了解决方案!我的手机不支持播放服务(让我想知道为什么播放商店和其他带有播放服务的应用程序在上面可以播放/播放广告:/)

我使用了“compile'com.google.android.gms:Play Services location:10.2.1'”,我从9.2.1改为10.2.1。没有任何变化…:(我的应用程序不想安装…我更改的唯一配置是添加compile'com.google.android.gms:play services gcm:9.2.1'&&play services location。它停止安装:(有任何消息吗?让我看看!)!