app模块的build.gradle android模块添加

    lintOptions {
        disable 'InvalidPackage'
        checkReleaseBuilds false
        abortOnError false
    }

gradle模块开启offline mode

使用 gradlew clean ,gradlew assemble 进行清理

删除test目录

Execution, Deployment > Compiler里找到Command-line Options里将–offline删掉就行了
编译选项
–parallel –offline

关于错误日志
2020/04/30 Cannot lock daemon addresses registry as it has already been locked by this process.
2020/04/30 Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.

AGPBI: {"kind":"warning","text":"Missing class: com.meizu.cloud.pushsdk.MzPushMessageReceiver","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.google.android.gms.internal.zzbej","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.google.firebase.iid.FirebaseInstanceIdService","sources":[{}],"tool":"R8"}

发表评论

邮箱地址不会被公开。 必填项已用*标注