Android Studio app项目Build构建错误

1.Multiple dex files define Lxyz/cq/clog/BuildConfig;

请检查moudle里面依赖包,这个是lib依赖包重复导致的,

2.Execution failed for task ‘:app:lint’.

Wrote HTML report to file:///E:/AndroidStudioProjects/xxx/app/build/reports/lint-results.html
Wrote XML report to file:///E:/AndroidStudioProjects/xxx/app/build/reports/lint-results.xml

 * What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors in the project; aborting build.

  Fix the issues identified by lint, or add the following to your build script to proceed with errors:
  ...
  android {
      lintOptions {
          abortOnError false
      }
  }
  ...

打开项目app/build/reports/目录 用浏览器打开lint-results.html 可以查看到错误具体信息

3.Android dependency ‘xyz.cq.base:clog’ has different version for the compile (1.0.6) and runtime (1.0.7) classpath. You should manually set the same version via DependencyResolution

编译器和运行期依赖版本不一致,调整app和其他依赖moudle里面依赖版本一直即可

implementation  'xyz.cq.clog:clog:1.0.7'

4.E:\AndroidStudioProjects\MyApplication\src\main\res\drawable\btn_tipdialog_1.xml:4: AAPT: error: resource color/app_theme_color (aka xyz.chengqian.basesdk:color/app_theme_color) not found.

E:\AndroidStudioProjects\UnderLinePayMerchant\basesdk\src\main\res\drawable\btn_tipdialog_2.xml:4: AAPT: error: resource color/bg_color (aka xyz.chengqian.basesdk:color/bg_color) not found.

error: failed linking file resources.

点击查看没找到的资源文件进行修改即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值