为什么在android中生成签名apk时显示警告:com.mixpanel.android.mpmetrics.Tweaks

时间:2017-06-28 11:08:53

标签: android android-studio build.gradle

android studio run generate signed apk显示此错误..

Information:Gradle tasks [:app:assembleRelease]
Warning:com.mixpanel.android.mpmetrics.Tweaks: can't find referenced class com.mixpanel.android.mpmetrics.Tweaks$TweakType
Warning:there were 1 unresolved references to classes or interfaces.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:java.lang.RuntimeException: Job failed, see logs for details
Error:java.io.IOException: Please correct the above warnings first.
Information:BUILD FAILED in 11s 

的build.gradle

我修改它minifyennabled:false更改为minifyennabled:true此错误累积

buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            debuggable false
            signingConfig signingConfigs.config
        }
        debug {
            debuggable true
            signingConfig signingConfigs.config
        }
    }

0 个答案:

没有答案