文章目录
- 1.Multiple dex files define Lxyz/cq/clog/BuildConfig;
- 2.Execution failed for task ':app:lint'.
- 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
- 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.
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.
点击查看没找到的资源文件进行修改即可