应用程序发布版本无法在marshmallow代码

时间:2016-08-08 05:15:06

标签: android android-6.0-marshmallow android-install-apk

当我使用./gradlew assembleDebug并生成应用程序的调试版本时,它正确安装但是当我使用./gradlew assembleRelease并生成发布版本应用程序无法安装在android v.6中时" Marshmallow"。这是错的吗?这是我的gradle.build文件。

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }

    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    compileSdkVersion 24
    buildToolsVersion '24.0.1'

    signingConfigs {
        config {
            keyAlias 'eCommerce Social Network'
            keyPassword '*****************'
            storeFile file('/home/saeed/Keys/ShareIno/sharino.jks')
            storePassword '!@#$s@EED 13710554$#@!'
        }
    }

    defaultConfig {
        applicationId "com.shareino.android"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
    }
}

repositories {
    maven { url "http://dl.bintray.com/populov/maven" }
    maven { url 'https://maven.fabric.io/public' }

    mavenCentral()
    maven { url "https://jitpack.io" }

}

//compile 'com.labo.kaji:fragmentanimations:0.1.0'

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
        transitive = true;
    }
    compile 'com.google.firebase:firebase-core:9.2.1'
    compile 'com.google.firebase:firebase-messaging:9.2.1'
    compile 'com.google.android.gms:play-services-auth:9.2.1'
    androidTestCompile 'com.android.support:support-annotations:24.1.1'
    compile 'com.android.support:appcompat-v7:24.1.1'
    compile 'com.android.support:design:24.1.1'
    compile 'com.android.support:cardview-v7:24.1.1'
    compile 'com.android.support:support-v4:24.1.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'de.hdodenhof:circleimageview:2.1.0'
    compile 'com.makeramen:roundedimageview:2.2.1'
    compile 'com.squareup.okhttp:logging-interceptor:2.7.0'
    compile 'com.squareup.retrofit:converter-jackson:2.0.0-beta2'
    compile 'com.squareup.retrofit2:retrofit:2.1.0'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.viewpagerindicator:library:2.4.1@aar'
    compile 'com.koushikdutta.ion:ion:2.+'
    compile 'com.soundcloud.android:android-crop:1.0.1@aar'
    compile 'com.github.2359media:EasyAndroidAnimations:0.8'
    compile 'com.appsee:appsee-android:+'
    compile 'com.google.android.gms:play-services-appindexing:9.2.1'
}
apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案