AndroidStudio,java.util.zip.ZipException

时间:2017-12-12 18:06:36

标签: android android-studio zipexception

我有两部测试手机,一部是三星Galaxy S5,另一部是LG G2。

每当我尝试在LG G2上运行我的应用程序时,我都会出现以下错误。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"
    defaultConfig {
        applicationId "xxxx"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

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

    compile files('libs/ajt-2.9.jar', 'libs/javaml-0.1.7.jar')
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support:design:26.+'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.android.gms:play-services:11.0.1'
    compile 'com.firebase:firebase-jobdispatcher:0.6.0'
    compile 'org.jsoup:jsoup:1.7.3'

    testCompile 'junit:junit:4.12'
}

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

该应用程序完美适用于S5,但G2有错误。操作系统版本的S5为6.0.1,G2为4.4。

我该怎么做?我在这里附上了build.gradle。

gradle dependencies

1 个答案:

答案 0 :(得分:0)

你有没有尝试过这里的建议:

https://github.com/firebase/firebase-jobdispatcher-android/issues/3

compile ("com.firebase:firebase-jobdispatcher:0.6.0") {
        exclude module: "play-services-gcm"
}
相关问题