当前位置: 首页 > 知识库问答 >
问题:

任务“:app:minifyReleaseWithr8”执行失败

程修雅
2023-03-14
    > Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Ignoring option: -dump","sources":[{"file":"/Users/merlin720/easycan/gitlab/android-app/app/proguard-rules.pro","position":{"startLine":47,"startColumn":0,"startOffset":1295,"endColumn":21,"endOffset":1316}}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.alipay.sdk.app.H5PayCallback","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.facebook.imagepipeline.request.BasePostprocessor","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.bun.miitmdid.core.IIdentifierListener","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Library class android.test.AndroidTestRunner extends program class junit.runner.BaseTestRunner","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Library class android.test.InstrumentationTestCase extends program class junit.framework.TestCase","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Library class android.test.AndroidTestCase extends program class junit.framework.TestCase","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Library class android.test.InstrumentationTestSuite extends program class junit.framework.TestSuite","sources":[{}],"tool":"R8"}

任务:应用程序:MiniFyReleaseWithr8失败

失败:生成失败,出现异常。

dependencies {
    classpath 'com.android.tools.build:gradle:3.6.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files

    //美团多渠道
    classpath 'com.meituan.android.walle:plugin:1.1.6'
}

distributionurl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip

共有1个答案

西门逸仙
2023-03-14

为我工作添加到gradle

"implementation 'com.google.firebase:firebase-messaging:20.1.0'"
 类似资料: