android-构建apk文件找不到zzoj的普通超类

时间:2018-10-18 09:14:31

标签: android android-studio android-sdk-tools

我要构建apk文件,项目运行正常,没有错误,但是在构建apk时,出现此错误:

Can't find common super class of [com/google/android/gms/internal/zzoj] (with 2 known super classes) and [com/google/android/gms/internal/zzol] (with 2 known super classes)

这是我的礼物:

    android {
    compileSdkVersion 27

    defaultConfig {
        applicationId "com.xxxx.xxx"
        minSdkVersion 14
        targetSdkVersion 27
        versionCode 2       // increment with every release
        versionName '1.1.1'   // change with every release
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    implementation 'com.android.support:appcompat-v7:27.0.2'
    implementation 'com.android.support:recyclerview-v7:27.0.2'
    implementation 'com.android.support:cardview-v7:27.0.2'
    implementation 'com.android.support:design:27.0.2'
    implementation ('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
        exclude module: 'support-v4'
    }

    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'com.github.shell-software:fab:1.1.2'
    implementation 'com.alirezaafkar:sundatepicker:2.0.8'
    implementation 'me.dm7.barcodescanner:zxing:1.9'

    implementation 'com.google.android.gms:play-services-maps:16.0.0'
    implementation 'com.google.android.gms:play-services-gcm:16.0.0'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.alirezaafkar:sundatepicker:2.0.8'
    implementation 'me.cheshmak:analytics:2.0.+'

    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-messaging:17.3.3'
    }

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

这是我的akk gradle:

    buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath 'com.google.gms:google-services:4.1.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

我尝试了很多方法,例如: -清理项目 -使项目无效并重新启动 -重建 -删除.gradle和.ideal文件夹并重建

我还更改了gradle版本,不同的sdk版本,没有任何作用

已经2天了

你能帮我吗?我该如何解决?我真的很累

0 个答案:

没有答案
相关问题