Android多渠道打包报错

Android多渠道打包报错

在Android工程进行多渠道打包时,运行单个渠道的Gradle Task自动化打包时遇到如下错误

Execution failed for task ':app:lintVitalOssRelease'.
> Could not resolve all artifacts for configuration ':app:TESTReleaseRuntimeClasspath'.
   > Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for JetifyTransform: /Users/lv/Downloads/flutter_workplace/pop_law_flutter/build/app/intermediates/flutter/TESTRelease/libs.jar.
         > Transform's input file does not exist: /Users/lv/Downloads/flutter_workplace/pop_law_flutter/build/app/intermediates/flutter/TESTRelease/libs.jar. (See https://issuetracker.google.com/issues/158753935)

在这里插入图片描述

解决方案:

build.gradle(:app)中的android{}目录下的lintOptions{}中添加checkReleaseBuilds false
即:

android {
...
	lintOptions {
		...
		//true--所有正式版构建执行规则生成崩溃的lint检查,如果有崩溃问题将停止构建
		checkReleaseBuilds false
		...
	}
...
}

再次运行Gradle Task脚本,成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值