下载前,Google Play商店中的应用尺寸会增加

时间:2017-05-19 06:22:47

标签: android google-play apk

我为Google Play商店制作了一个4MB大小的应用程序(仅限斯里兰卡),我最近报道有些用户无法下载应用程序,因为应用程序可能太大,有时达到40到400MB。

我试图找到可能导致此问题的原因,但我无法在我的设备上复制此方案。有哪些因素可能导致应用程序大小的这种膨胀,我该怎么做才能减少这种情况?

我使用过firebase分析和崩溃报告服务,在之前的问题中,我被告知可能会对此做出贡献。这是真的,怎么样?

编辑: - 这是顶级build.gradle源

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.0.0'

    }

}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

这是应用级构建文件: -

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "23.0.3"
    defaultConfig {
        applicationId "observerjobs.com.testapp"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 6
        versionName "0.2.2"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'com.google.firebase:firebase-core:9.8.0'
    compile 'com.google.firebase:firebase-crash:9.8.0'
    compile 'com.facebook.fresco:fresco:0.14.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.android.support:support-vector-drawable:24.2.1'
    testCompile 'junit:junit:4.12'
    compile 'com.google.android.gms:play-services-appindexing:9.8.0'
    compile 'com.android.support:cardview-v7:24.0.+'
    compile 'com.android.support:recyclerview-v7:24.0.+'

}

apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案